Expires the named value from the cache.
static
void
expire
(mixed $name)
-
mixed
$name: The name of the cached item or an array of array( string $group, string $name )
Extend the expiration of the named cached value.
static
void
extend
(mixed $name, integer $expiry)
-
mixed
$name: The name of the cached item or an array of array( string $group, string $name )
-
integer
$expiry: The duration in seconds to extend the cache expiration by
Returns the named value from the cache.
static
mixed
get
(mixed $name)
-
mixed
$name: The name of the cached item or an array of array( string $group, string $name )
Returns the group from the cache.
static
mixed
get_group
( $group, string $name)
-
string
$name: The name of the cached group
-
$group
Is record with $name in the cache?
static
boolean
has
(mixed $name)
-
mixed
$name: name of the cached item or an array of array( string $group, string $name )
Is group in the cache?
static
boolean
has_group
(string $group)
-
string
$group: name of the cached group
Set the named value in the cache with an expiration.
static
void
set
(mixed $name, mixed $value, [integer $expiry = 3600])
-
mixed
$name: The name of the cached item or an array of array( string $group, string $name )
-
mixed
$value: The value to store
-
integer
$expiry: Number of second after the call that the cache will expire
Set up the static cache instance in __autoload()
static
void
__static
()
A cache instance implements this to expire the named value from the cache.
void
_expire
(string $name, $group)
-
string
$name: The name of the cached item
-
$group
Redefined in descendants as:
A cache instance implements this to extend the expiration of the named cached value.
void
_extend
(string $name, integer $expiry, $group)
-
string
$name: The name of the cached item
-
integer
$expiry: The duration in seconds to extend the cache expiration by
-
$group
Redefined in descendants as:
A cache instance implements this to return the named value from the cache.
mixed
_get
(string $name, $group)
-
string
$name: The name of the cached item
-
$group
Redefined in descendants as:
A cache instance implements this to return the group from the cache.
mixed
_get_group
( $group, string $name)
-
string
$name: The name of the cached group
-
$group
Redefined in descendants as:
A cache instance implements this function to return whether a named cache exists.
boolean
_has
(string $name, $group)
-
string
$name: The name of the cached item
-
$group
Redefined in descendants as:
A cache instance implements this function to return whether a group exists.
boolean
_has_group
( $group, string $name)
-
string
$name: The name of the cached group
-
$group
Redefined in descendants as:
A cache instance implements this to set the named value in the cache with an expiration.
void
_set
(string $name, mixed $value, integer $expiry, $group)
-
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
-
$group
Redefined in descendants as: