AbstractDriverCacheStorage
class AbstractDriverCacheStorage extends AbstractCacheStorage (View source)
Class AbstractDriverCacheStorage
Methods
Constructor.
Removes multiple items from the pool.
Confirms if the cache contains specified cache item.
Confirms if the cache contains specified cache item.
Method to set property options
Sets a cache item to be persisted later.
getDriver
setDriver
Details
at line line 34
__construct(object $driver = null, int $ttl = null, mixed $options = array())
Constructor.
in AbstractCacheStorage at line line 74
Traversable
getItems(array $keys = array())
getItems
in AbstractCacheStorage at line line 93
AbstractCacheStorage
deleteItems(array $keys)
Removes multiple items from the pool.
in AbstractCacheStorage 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.
in AbstractCacheStorage 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.
in AbstractCacheStorage at line line 149
array
getOptions()
Method to get property Options
in AbstractCacheStorage at line line 161
AbstractCacheStorage
setOptions(array $options)
Method to set property options
in AbstractCacheStorage at line line 177
bool
saveDeferred(CacheItemInterface $item)
Sets a cache item to be persisted later.
in AbstractCacheStorage at line line 195
bool
commit()
Persists any deferred cache items.
at line line 53
object
getDriver()
getDriver
at line line 65
AbstractDriverCacheStorage
setDriver(object $driver)
setDriver