Inheritance diagram for FileCache:
Collaboration diagram for FileCache:Public Member Functions | |
| __construct () | |
Protected Member Functions | |
| _has ($name, $group) | |
| _has_group ($group) | |
| _get_group ($group) | |
| _get ($name, $group) | |
| _set ($name, $value, $expiry, $group, $keep) | |
| _expire ($name, $group, $match_mode= 'strict') | |
| _expired ($name, $group) | |
| _extend ($name, $expiry, $group) | |
| _purge () | |
Protected Attributes | |
| $cache_location | |
| $enabled = false | |
| $cache_files = array() | |
| $cache_data = array() | |
| $index_file | |
Contains the FileCache class
Stores cache data in local files
Definition at line 12 of file filecache.php.
| FileCache::__construct | ( | ) |
Constructor for FileCache
Sets up paths etc. and reads cache index, if it exists.
Definition at line 25 of file filecache.php.
| FileCache::_expire | ( | $ | name, | |
| $ | group, | |||
| $ | match_mode = 'strict' | |||
| ) | [protected] |
Expires the named value from the cache.
| string | $name The name of the cached item | |
| string | $group The name of the cache group | |
| string | $match_mode (optional) how to match bucket names ('strict', 'regex', 'glob') (default 'strict') |
Definition at line 169 of file filecache.php.
| FileCache::_expired | ( | $ | name, | |
| $ | group | |||
| ) | [protected] |
Return whether a named cache value has expired
| string | $name The name of the cached item | |
| string | $group The group of the cached item |
Reimplemented from Cache.
Definition at line 224 of file filecache.php.
| FileCache::_extend | ( | $ | name, | |
| $ | expiry, | |||
| $ | group | |||
| ) | [protected] |
Extend the expiration of the named cached value.
| 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 247 of file filecache.php.
| FileCache::_get | ( | $ | name, | |
| $ | group | |||
| ) | [protected] |
Returns the named value from the cache.
| string | $name The name of the cached item |
Reimplemented from Cache.
Definition at line 118 of file filecache.php.
| FileCache::_get_group | ( | $ | group | ) | [protected] |
Returns the group from the cache.
| string | $name The name of the cached item |
Reimplemented from Cache.
Definition at line 92 of file filecache.php.
| FileCache::_has | ( | $ | name, | |
| $ | group | |||
| ) | [protected] |
Is record with $name in the cache?
| string | $name name of the cached item |
Reimplemented from Cache.
Definition at line 50 of file filecache.php.
| FileCache::_has_group | ( | $ | group | ) | [protected] |
Is group in the cache?
| string | $name name of the cached item |
Reimplemented from Cache.
Definition at line 67 of file filecache.php.
| FileCache::_purge | ( | ) | [protected] |
Remove all cache files
Definition at line 270 of file filecache.php.
| FileCache::_set | ( | $ | name, | |
| $ | value, | |||
| $ | expiry, | |||
| $ | group, | |||
| $ | keep | |||
| ) | [protected] |
A cache instance implements this to set the named value in the cache with an expiration.
| 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 135 of file filecache.php.
1.7.1