AbstractCacheStorage
class AbstractCacheStorage implements CacheItemPoolInterface (View source)
Class AbstractCacheStorage
Methods
Constructor.
getItems
Removes multiple items from the pool.
Confirms if the cache contains specified cache item.
Confirms if the cache contains specified cache item.
Method to get property Options
Method to set property options
Sets a cache item to be persisted later.
Persists any deferred cache items.
Details
at line line 59
__construct(int $ttl = null, mixed $options = array())
Constructor.
at line line 74
Traversable
getItems(array $keys = array())
getItems
at line line 93
AbstractCacheStorage
deleteItems(array $keys)
Removes multiple items from the pool.
at line line 120
bool
hasItem(string $key)
Confirms if the cache contains specified cache item.
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.
at line line 142
abstract bool
exists(string $key)
Confirms if the cache contains specified cache item.
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.
at line line 149
array
getOptions()
Method to get property Options
at line line 161
AbstractCacheStorage
setOptions(array $options)
Method to set property options
at line line 177
bool
saveDeferred(CacheItemInterface $item)
Sets a cache item to be persisted later.
at line line 195
bool
commit()
Persists any deferred cache items.