메소드 | 설명 | |
---|---|---|
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. |
메소드 | 설명 | |
---|---|---|
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. |
메소드 | 설명 | |
---|---|---|
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. |
리턴 | 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 |
리턴 | array | Array of values retrieved for the given keys. |
abstract protected doGetStats ( ) : array | null | ||
리턴 | 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). |
리턴 | 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). |
리턴 | boolean | TRUE if the operation was successful, FALSE if it wasn't. |
public getNamespace ( ) : string | ||
리턴 | string |
public setNamespace ( string $namespace ) : void | ||
$namespace | string | |
리턴 | void |