EnhancedCacheItemPoolInterface
interface EnhancedCacheItemPoolInterface implements CacheItemPoolInterface (View source)
Constants
CACHE_SUCCESS |
|
CACHE_ERROR |
|
Methods
Returns the internal pool's id
Returns the current state
Returns the current state
Returns the time when the state was determined
Put provider in error state
Test the pool
Get current namespace
Set current namespace
Chear the whole (current) namespace
Get provider statistics
Details
at line 32
string
getId()
Returns the internal pool's id
at line 39
int
getState()
Returns the current state
at line 46
string|null
getStateMessage()
Returns the current state
at line 53
DateTimeInterface|null
getStateTime()
Returns the time when the state was determined
at line 62
EnhancedCacheItemPoolInterface
setState($state, $message = null)
Put provider in error state
at line 73
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
at line 80
string
getNamespace()
Get current namespace
at line 88
string|null
setNamespace(string $namespace)
Set current namespace
at line 95
string|null
clearNamespace()
Chear the whole (current) namespace
at line 102
EnhancedCacheItemPoolStats
getStats()
Get provider statistics