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

string getId()

Returns the internal pool's id

Return Value

string

int getState()

Returns the current state

Return Value

int 0 if no error.

string|null getStateMessage()

Returns the current state

Return Value

string|null Last error message (if any).

DateTimeInterface|null getStateTime()

Returns the time when the state was fixed

Return Value

DateTimeInterface|null

EnhancedSimpleCacheInterface setState($state, $message = null)

Set provider in error state

Parameters

$state
$message

Return Value

EnhancedSimpleCacheInterface The invoked object.

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

Return Value

bool

getNamespace()

setNamespace($namespace)

Parameters

$namespace

clearNamespace()

EnhancedCacheItemPoolStats getStats()

Disable provider

Return Value

EnhancedCacheItemPoolStats