Méthode | Description | |
---|---|---|
contains ( string $id ) : boolean | Tests if an entry exists in the cache. | |
delete ( string $id ) : boolean | Deletes a cache entry. | |
fetch ( string $id ) : mixed | Fetches an entry from the cache. | |
getStats ( ) : array | null | Retrieves cached information from the data store. | |
save ( string $id, mixed $data, integer $lifeTime ) : boolean | Puts data into the cache. |
public save ( string $id, mixed $data, integer $lifeTime ) : boolean | ||
$id | string | The cache id. |
$data | mixed | The cache entry/data. |
$lifeTime | integer | The lifetime in number of seconds for this cache entry. If zero (the default), the entry never expires (although it may be deleted from the cache to make place for other entries). |
Résultat | boolean | TRUE if the entry was successfully stored in the cache, FALSE otherwise. |