AbstractEnhancedProvider
abstract class AbstractEnhancedProvider extends AbstractProvider implements EnhancedCacheItemPoolInterface (View source)
Traits
Properties
protected LoggerInterface | $logger | Current logger | from AbstractProvider |
protected string | $namespace | Determine the current cache scope (default: GLOBAL) | from NamespaceTrait |
protected | $driver | ||
protected | $default_properties | ||
protected | $properties |
Methods
Class constructor
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
Get provider statistics
No description
Chear the whole (current) namespace
Test the pool
Details
at line 48
__construct(array $properties = [], LoggerInterface $logger = null)
Class constructor
in AbstractProvider at line 48
getLogger()
{@inheritdoc}
in AbstractProvider at line 57
setLogger(LoggerInterface $logger = null)
{@inheritdoc}
at line 72
getItem($key)
{@inheritdoc}
at line 235
getItems(array $keys = [])
{@inheritdoc}
at line 100
hasItem($key)
{@inheritdoc}
at line 124
clear()
{@inheritdoc}
at line 164
deleteItem($key)
{@inheritdoc}
at line 270
deleteItems(array $keys)
{@inheritdoc}
at line 188
save(CacheItemInterface $item)
{@inheritdoc}
at line 290
saveDeferred(CacheItemInterface $item)
{@inheritdoc}
at line 305
commit()
{@inheritdoc}
in StatefulTrait at line 31
protected
setId($id)
in StatefulTrait at line 39
getId()
in StatefulTrait at line 45
getState()
in StatefulTrait at line 51
getStateMessage()
in StatefulTrait at line 57
getStateTime()
in StatefulTrait at line 63
setState($state, $message = null)
in NamespaceTrait at line 34
getNamespace()
{@inheritdoc}
in NamespaceTrait at line 43
setNamespace($namespace = null)
{@inheritdoc}
at line 61
abstract EnhancedCacheItemPoolStats
getStats()
Get provider statistics
at line 63
getProperties()
at line 144
string|null
clearNamespace()
Chear the whole (current) namespace
at line 212
bool
test()
Test the pool
Test should be used to ensure the status flag is setted correctly. If test passes, then status should be CACHE_SUCCESS, otherwise it should correspond to CACHE_ERROR