Class DoctrineCacheItemPool
package |
Ascmvc\Session\Cache |
---|
__construct(\Ascmvc\Session\Config $config)
clear() : boolean
boolean
True if the pool was successfully cleared. False if there was an error.
commit() : boolean
boolean
True if all not-yet-saved items were successfully saved or there were none. False otherwise.
deleteItem(string $key) : boolean
Throws |
|
---|
string
The key to delete.
boolean
True 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.
boolean
True 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 |
|
---|
string
The key for which to return the corresponding Cache Item.
\Psr\Cache\CacheItemInterface
The 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|\Traversable
A 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 |
|
---|
string
The key for which to check existence.
boolean
True if item exists in the cache, false otherwise.
save(\Psr\Cache\CacheItemInterface $item) : boolean
\Psr\Cache\CacheItemInterface
The cache item to save.
boolean
True if the item was successfully persisted. False if there was an error.
saveDeferred(\Psr\Cache\CacheItemInterface $item) : boolean
\Psr\Cache\CacheItemInterface
The cache item to save.
boolean
False 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