Public Member Functions | Protected Member Functions | Protected Attributes

APCCache Class Reference

Inheritance diagram for APCCache:
Collaboration diagram for APCCache:

List of all members.

Public Member Functions

 __construct ()

Protected Member Functions

 _has ($name, $group)
 _get ($name, $group)
 _get_group ($group)
 _has_group ($group)
 _set ($name, $value, $expiry, $group, $keep)
 _expire ($name, $group, $match_mode= 'strict')
 _expired ($name, $group)
 _extend ($name, $expiry, $group)
 _purge ()

Protected Attributes

 $enabled = false
 $cache_data = array()
 $prefix

Detailed Description

Contains the APCCache class

Definition at line 13 of file apccache.php.


Constructor & Destructor Documentation

APCCache::__construct (  ) 

Constructor for APCCache

Definition at line 22 of file apccache.php.


Member Function Documentation

APCCache::_expire ( name,
group,
match_mode = 'strict' 
) [protected]

Expires the named value from the cache.

Parameters:
string $name The name of the cached item
string $match_mode (optional) how to match bucket names ('strict', 'regex', 'glob') (default 'strict')

Definition at line 138 of file apccache.php.

APCCache::_expired ( name,
group 
) [protected]

Return whether a named cache value has expired

Parameters:
string $name The name of the cached item
string $group The group of the cached item
Returns:
boolean true if the stored value has expired

Reimplemented from Cache.

Definition at line 175 of file apccache.php.

APCCache::_extend ( name,
expiry,
group 
) [protected]

Extend the expiration of the named cached value.

Parameters:
string $name The name of the cached item
integer $expiry The duration in seconds to extend the cache expiration by

Reimplemented from Cache.

Definition at line 198 of file apccache.php.

APCCache::_get ( name,
group 
) [protected]

Returns the named value from the cache.

Parameters:
string $name The name of the cached item
Returns:
mixed The item value or null if it doesn't exist in cache

Reimplemented from Cache.

Definition at line 52 of file apccache.php.

Referenced by _extend().

APCCache::_get_group ( group  )  [protected]

Returns the named values from a group of cache.

Parameters:
string $name The name of the cached item
Returns:
array The cache records of the group

Reimplemented from Cache.

Definition at line 66 of file apccache.php.

Referenced by _has_group().

APCCache::_has ( name,
group 
) [protected]

Is record with $name in the cache?

Parameters:
string $name name of the cached item
Returns:
boolean true if item is cached, false if not

Reimplemented from Cache.

Definition at line 38 of file apccache.php.

Referenced by _extend().

APCCache::_has_group ( group  )  [protected]

Is group named $group in the cache?

Parameters:
string $name name of the cached item
Returns:
boolean true if group is cached, false if not

Reimplemented from Cache.

Definition at line 89 of file apccache.php.

APCCache::_purge (  )  [protected]

Remove all cached items

Definition at line 217 of file apccache.php.

APCCache::_set ( name,
value,
expiry,
group,
keep 
) [protected]

A cache instance implements this to set the named value in the cache with an expiration.

Parameters:
string $name The name of the cached item
mixed $value The value to store
integer $expiry Number of second after the call that the cache will expire

Reimplemented from Cache.

Definition at line 105 of file apccache.php.

Referenced by _extend().


The documentation for this class was generated from the following file: