Свойство | Type | Description | |
---|---|---|---|
$cache_class | |||
$default_group | |||
$instance |
Méthode | Description | |
---|---|---|
__static ( ) | Set up the static cache instance in __autoload() | |
debug ( ) | ||
expire ( mixed $name, string $match_mode = 'strict' ) | Expires the named value from the cache. | |
expired ( mixed $name ) | Check if a named value in the cache has expired. | |
extend ( mixed $name, integer $expiry ) | Extend the expiration of the named cached value. | |
get ( mixed $name ) : mixed | Returns the named value from the cache. | |
get_class ( ) : string | Retrieve the class used for caching | |
get_group ( $group ) : mixed | Returns the group from the cache. | |
has ( mixed $name ) : boolean | Is record with $name in the cache? | |
has_group ( string $group ) : boolean | Is group in the cache? | |
purge ( ) | Empty the cache completely | |
set ( mixed $name, mixed $value, integer $expiry = 3600, boolean $keep = false ) | Set the named value in the cache with an expiration. |
Méthode | Description | |
---|---|---|
_expire ( string $name, $group ) | A cache instance implements this to expire the named value from the cache. | |
_expired ( string $name, $group ) | A cache instance implements this to expire the named value from the cache. | |
_extend ( string $name, integer $expiry, $group ) | A cache instance implements this to extend the expiration of the named cached value. | |
_get ( string $name, $group ) : mixed | A cache instance implements this to return the named value from the cache. | |
_get_group ( $group ) : mixed | A cache instance implements this to return the group from the cache. | |
_has ( string $name, $group ) : boolean | A cache instance implements this function to return whether a named cache exists. | |
_has_group ( $group ) : boolean | A cache instance implements this function to return whether a group exists. | |
_set ( string $name, mixed $value, integer $expiry, $group, $keep ) | A cache instance implements this to set the named value in the cache with an expiration. |
Méthode | Description | |
---|---|---|
site_unique ( ) : string | Return a string unique to this cache so that site caches don't collide |
public static __static ( ) |
abstract protected _get_group ( $group ) : mixed | ||
Résultat | mixed | The item value or null if it doesn't exist in cache |
abstract protected _has_group ( $group ) : boolean | ||
Résultat | boolean | true if the group is cached, false if not |
public static set ( mixed $name, mixed $value, integer $expiry = 3600, boolean $keep = false ) | ||
$name | mixed | The name of the cached item or an array of array( string $group, string $name ) |
$value | mixed | The value to store |
$expiry | integer | Number of second after the call that the cache will expire |
$keep | boolean | If true, retain the cache value even after expiry but report the cache as expired |