Class DoctrineCacheItemPool
| package |
Ascmvc\Session\Cache |
|---|
__construct(\Ascmvc\Session\Config $config)
clear() : boolean
booleanTrue if the pool was successfully cleared. False if there was an error.
commit() : boolean
booleanTrue if all not-yet-saved items were successfully saved or there were none. False otherwise.
deleteItem(string $key) : boolean
| Throws |
|
|---|
stringThe key to delete.
booleanTrue if the item was successfully removed. False if there was an error.
deleteItems(array<mixed,string> $keys) : boolean
| Throws |
|
|---|
array<mixed,string>An array of keys that should be removed from the pool.
booleanTrue if the items were successfully removed. False if there was an error.
getItem(string $key) : \Psr\Cache\CacheItemInterface
This method must always return a CacheItemInterface object, even in case of a cache miss. It MUST NOT return null.
| Throws |
|
|---|
stringThe key for which to return the corresponding Cache Item.
\Psr\Cache\CacheItemInterfaceThe corresponding Cache Item.
getItems(array<mixed,string> $keys = array()) : array|\Traversable
| Throws |
|
|---|
array<mixed,string>An indexed array of keys of items to retrieve.
array|\TraversableA traversable collection of Cache Items keyed by the cache keys of each item. A Cache item will be returned for each key, even if that key is not found. However, if no keys are specified then an empty traversable MUST be returned instead.
hasItem(string $key) : boolean
Note: This method MAY avoid retrieving the cached value for performance reasons. This could result in a race condition with CacheItemInterface::get(). To avoid such situation use CacheItemInterface::isHit() instead.
| Throws |
|
|---|
stringThe key for which to check existence.
booleanTrue if item exists in the cache, false otherwise.
save(\Psr\Cache\CacheItemInterface $item) : boolean
\Psr\Cache\CacheItemInterfaceThe cache item to save.
booleanTrue if the item was successfully persisted. False if there was an error.
saveDeferred(\Psr\Cache\CacheItemInterface $item) : boolean
\Psr\Cache\CacheItemInterfaceThe cache item to save.
booleanFalse if the item could not be queued or if a commit was attempted and failed. True otherwise.
driver : \Doctrine\Common\Cache\Cache
| var |
|---|
\Doctrine\Common\Cache\Cache
deferred : array
| var |
CacheItemInterface |
|---|
array