Public Member Functions | Protected Member Functions

DisabledCache Class Reference

Inheritance diagram for DisabledCache:
Collaboration diagram for DisabledCache:

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 ()

Detailed Description

Contains the DisabledCache class, which disables caching

Definition at line 13 of file disabledcache.php.


Constructor & Destructor Documentation

DisabledCache::__construct (  ) 

Constructor for DisabledCache

Definition at line 18 of file disabledcache.php.


Member Function Documentation

DisabledCache::_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 78 of file disabledcache.php.

DisabledCache::_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 90 of file disabledcache.php.

DisabledCache::_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 101 of file disabledcache.php.

DisabledCache::_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 40 of file disabledcache.php.

DisabledCache::_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 51 of file disabledcache.php.

DisabledCache::_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 29 of file disabledcache.php.

DisabledCache::_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 62 of file disabledcache.php.

DisabledCache::_purge (  )  [protected]

Remove all cached items

Definition at line 109 of file disabledcache.php.

DisabledCache::_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 67 of file disabledcache.php.


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