EnhancedSimpleCacheInterface
interface EnhancedSimpleCacheInterface implements CacheInterface (View source)
Constants
CACHE_SUCCESS |
|
CACHE_ERROR |
|
Methods
string
getId()
Returns the internal pool's id
int
getState()
Returns the current state
string|null
getStateMessage()
Returns the current state
DateTimeInterface|null
getStateTime()
Returns the time when the state was fixed
setState($state, $message = null)
Set provider in error state
bool
test()
Test the pool
getNamespace()
No description
setNamespace($namespace)
No description
clearNamespace()
No description
EnhancedCacheItemPoolStats
getStats()
Disable provider
Details
at line 32
string
getId()
Returns the internal pool's id
at line 40
int
getState()
Returns the current state
at line 48
string|null
getStateMessage()
Returns the current state
at line 56
DateTimeInterface|null
getStateTime()
Returns the time when the state was fixed
at line 70
EnhancedSimpleCacheInterface
setState($state, $message = null)
Set provider in error state
at line 82
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
at line 84
getNamespace()
at line 86
setNamespace($namespace)
at line 88
clearNamespace()
at line 95
EnhancedCacheItemPoolStats
getStats()
Disable provider