Class CacheItem
A representation of a cached item
Methods summary
public
|
#
__construct( string $key = null,
mixed $value = null,
Constructor |
public
mixed
|
|
public
|
|
public
integer
|
|
public
boolean
|
|
public
|
|
public
|
|
public
string
|
|
public
|
|
public
mixed
|
|
public
|
|
public
boolean
|
#
exists(
Checks if $this->key exists on the server |
public
boolean
|
|
public
boolean
|
|
public
boolean
|
#
getFromServer(
Sets $this->value & $this->lifetime from the server |
public
integer
|
#
getLifetimeFromServer(
Sets $this->lifetime from the server |
public
mixed|null
|
#
getValueFromServer(
Sets $this->value from the server |
Properties summary
protected
|
$client
The cache client |
Magic properties
public
string
|
$key
Cache item key |
public
mixed
|
$value
Cache item value |
public
integer
|
$lifetime
Cache item lifetime remaining |
public
|
$client
The cache client |