class Apcu extends AbstractEnhancedProvider (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 from AbstractEnhancedProvider
protected $default_properties from AbstractEnhancedProvider
protected $properties from AbstractEnhancedProvider

Methods

__construct(array $properties = [], LoggerInterface $logger = null)

Class constructor

getLogger()

{@inheritdoc}

setLogger(LoggerInterface $logger = null)

{@inheritdoc}

getItem($key)

{@inheritdoc}

getItems(array $keys = [])

{@inheritdoc}

hasItem($key)

{@inheritdoc}

clear()

{@inheritdoc}

deleteItem($key)

{@inheritdoc}

deleteItems(array $keys)

{@inheritdoc}

save(CacheItemInterface $item)

{@inheritdoc}

saveDeferred(CacheItemInterface $item)

{@inheritdoc}

commit()

{@inheritdoc}

setId($id)

No description

getId()

No description

getState()

No description

getStateMessage()

No description

getStateTime()

No description

setState($state, $message = null)

No description

getNamespace()

{@inheritdoc}

setNamespace($namespace = null)

{@inheritdoc}

EnhancedCacheItemPoolStats
getStats()

Get provider statistics

getProperties()

No description

string|null
clearNamespace()

Chear the whole (current) namespace

bool
test()

Test the pool

Details

__construct(array $properties = [], LoggerInterface $logger = null)

Class constructor

Parameters

array $properties
LoggerInterface $logger

Exceptions

CacheException

getLogger()

{@inheritdoc}

setLogger(LoggerInterface $logger = null)

{@inheritdoc}

Parameters

LoggerInterface $logger

getItem($key)

{@inheritdoc}

Parameters

$key

getItems(array $keys = [])

{@inheritdoc}

Parameters

array $keys

hasItem($key)

{@inheritdoc}

Parameters

$key

clear()

{@inheritdoc}

deleteItem($key)

{@inheritdoc}

Parameters

$key

deleteItems(array $keys)

{@inheritdoc}

Parameters

array $keys

save(CacheItemInterface $item)

{@inheritdoc}

Parameters

CacheItemInterface $item

saveDeferred(CacheItemInterface $item)

{@inheritdoc}

Parameters

CacheItemInterface $item

commit()

{@inheritdoc}

protected setId($id)

Parameters

$id

getId()

getState()

getStateMessage()

getStateTime()

setState($state, $message = null)

Parameters

$state
$message

getNamespace()

{@inheritdoc}

setNamespace($namespace = null)

{@inheritdoc}

Parameters

$namespace

EnhancedCacheItemPoolStats getStats()

Get provider statistics

Return Value

EnhancedCacheItemPoolStats

getProperties()

string|null clearNamespace()

Chear the whole (current) namespace

Return Value

string|null

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

Return Value

bool