Solar_Cache_Adapter_None::add()
public
true
Solar_Cache_Adapter_None::add
( string $key
, mixed $data
, int $life = NULL
)
Inserts cache entry data, but only if the entry does not already exist.
Parameters
(string)
$key
: The entry ID.(mixed)
$data
: The data to write into the entry.(int)
$life
: A custom lifespan, in seconds, for the entry; if null, uses the default lifespan for the adapter instance.
Returns
(true) Always reports a successsful add.
Description
Inserts cache entry data, but only if the entry does not already exist.