Property | Type | Description | |
---|---|---|---|
$cache_data | |||
$cache_files | |||
$cache_location | |||
$enabled | |||
$index_file |
Method | Description | |
---|---|---|
__construct ( ) | Constructor for FileCache |
Method | Description | |
---|---|---|
_expire ( string $name, string $group, string $match_mode = 'strict' ) | Expires the named value from the cache. | |
_expired ( string $name, string $group ) : boolean | Return whether a named cache value has expired | |
_extend ( string $name, integer $expiry, $group ) | Extend the expiration of the named cached value. | |
_get ( string $name, $group ) : mixed | Returns the named value from the cache. | |
_get_group ( $group ) : mixed | Returns the group from the cache. | |
_has ( string $name, $group ) : boolean | Is record with $name in the cache? | |
_has_group ( $group ) : boolean | Is group in the cache? | |
_purge ( ) | Remove all cache files | |
_set ( $name, $value, $expiry, $group, $keep ) |
Method | Description | |
---|---|---|
clear_expired ( ) | Purge expired items from the cache. | |
get_group_hash ( $group ) | Get the unique hash for a given key. | |
get_name_hash ( string $name ) | Get the unique hash for a given key. | |
record_fresh ( $record ) | Check whether a given record is still fresh (e.g. has not expired). |
public __construct ( ) |
protected _get_group ( $group ) : mixed | ||
return | mixed | The group or array() if it doesn't exist in cache |
protected _has_group ( $group ) : boolean | ||
return | boolean | true if item is cached, false if not |