PhpRedis
class PhpRedis extends AbstractEnhancedProvider (View source)
Traits
Properties
protected LoggerInterface | $logger | Current logger | from AbstractProvider |
protected | $driver | from AbstractEnhancedProvider | |
protected string | $namespace | Determine the current cache scope (default: GLOBAL) | from NamespaceTrait |
protected | $default_properties | ||
protected | $properties | from AbstractEnhancedProvider |
Methods
__construct(array $properties = [], LoggerInterface $logger = null)
Class constructor
EnhancedCacheItemPoolStats
getStats()
Disable provider
getInstance()
No description
Details
at line 37
__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}
get($key, $default = null)
set($key, $value, $ttl = null)
delete($key)
clear()
getMultiple($keys, $default = null)
setMultiple($values, $ttl = null)
deleteMultiple($keys)
has($key)
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}
getProperties()
at line 73
EnhancedCacheItemPoolStats
getStats()
Disable provider
clearNamespace()
bool
test()
Test the pool
Test should be used to ensure the status flag is setted correctly. If test is passed, the status should be == CACHE_SUCCESS, otherwise it should correspond to CACHE_ERROR