Метод |
Описание |
|
remove ( string $pattern ) : void |
This method will remove an existing cache entry for the given identifier. |
|
restore ( string $key, string $hash = null ) : mixed |
This method tries to restore an existing cache entry for the given
$key. If a matching entry exists, this method verifies that the
given $hash and the the value stored with cache entry are equal. |
|
store ( string $key, mixed $data, string $hash = null ) : void |
This method will store the given $data under $key. This
method can be called with a third parameter that will be used as a
verification token, when the a cache entry gets restored. If the stored
hash and the supplied hash are not identical, that cache entry will be
removed and not returned. |
|
type ( string $type ) : PDepend\Util\Cache\CacheDriver |
Sets the type for the next store() or restore() method
call. A type is something like a namespace or group for cache entries. |
|