Method | Description | |
---|---|---|
contains ( $id ) | ||
delete ( $id ) | ||
deleteAll ( ) | {@inheritDoc} | |
fetch ( $id ) | ||
fetchMultiple ( array $keys ) | ||
flushAll ( ) | {@inheritDoc} | |
getNamespace ( ) : string | Retrieves the namespace that prefixes all cache ids. | |
getStats ( ) | ||
save ( $id, $data, $lifeTime ) | ||
saveMultiple ( array $keysAndValues, $lifetime ) | ||
setNamespace ( string $namespace ) : void | Sets the namespace to prefix all cache ids with. |
Method | Description | |
---|---|---|
doContains ( string $id ) : boolean | Tests if an entry exists in the cache. | |
doDelete ( string $id ) : boolean | Deletes a cache entry. | |
doFetch ( string $id ) : mixed | false | Fetches an entry from the cache. | |
doFetchMultiple ( array $keys ) : array | Default implementation of doFetchMultiple. Each driver that supports multi-get should owerwrite it. | |
doFlush ( ) : boolean | Flushes all cache entries. | |
doGetStats ( ) : array | null | Retrieves cached information from the data store. | |
doSave ( string $id, string $data, integer $lifeTime ) : boolean | Puts data into the cache. | |
doSaveMultiple ( array $keysAndValues, integer $lifetime ) : boolean | Default implementation of doSaveMultiple. Each driver that supports multi-put should override it. |
Method | Description | |
---|---|---|
getNamespaceCacheKey ( ) : string | Returns the namespace cache key. | |
getNamespaceVersion ( ) : integer | Returns the namespace version. | |
getNamespacedId ( string $id ) : string | Prefixes the passed id with the configured namespace value. |
abstract protected doContains ( string $id ) : boolean | ||
$id | string | The cache id of the entry to check for. |
return | boolean | TRUE if a cache entry exists for the given cache id, FALSE otherwise. |
protected doFetchMultiple ( array $keys ) : array | ||
$keys | array | Array of keys to retrieve from cache |
return | array | Array of values retrieved for the given keys. |
abstract protected doGetStats ( ) : array | null | ||
return | array | null | An associative array with server's statistics if available, NULL otherwise. |
abstract protected doSave ( string $id, string $data, integer $lifeTime ) : boolean | ||
$id | string | The cache id. |
$data | string | The cache entry/data. |
$lifeTime | integer | The lifetime. If != 0, sets a specific lifetime for this cache entry (0 => infinite lifeTime). |
return | boolean | TRUE if the entry was successfully stored in the cache, FALSE otherwise. |
protected doSaveMultiple ( array $keysAndValues, integer $lifetime ) : boolean | ||
$keysAndValues | array | Array of keys and values to save in cache |
$lifetime | integer | The lifetime. If != 0, sets a specific lifetime for these cache entries (0 => infinite lifeTime). |
return | boolean | TRUE if the operation was successful, FALSE if it wasn't. |
public getNamespace ( ) : string | ||
return | string |
public saveMultiple ( array $keysAndValues, $lifetime ) | ||
$keysAndValues | array |
public setNamespace ( string $namespace ) : void | ||
$namespace | string | |
return | void |