class ArrayCache implements CacheInterface, LoggerAwareInterface, ResettableInterface

Traits

LoggerAwareTrait

Methods

array
getValues()

Returns all cached values, with cache miss as null.

hasItem($key)

{@inheritdoc}

clear()

{@inheritdoc}

deleteItem($key)

{@inheritdoc}

reset()

{@inheritdoc}

__construct(int $defaultLifetime, bool $storeSerialized = true)

No description

get($key, $default = null)

{@inheritdoc}

getMultiple($keys, $default = null)

{@inheritdoc}

deleteMultiple($keys)

{@inheritdoc}

set($key, $value, $ttl = null)

{@inheritdoc}

setMultiple($values, $ttl = null)

{@inheritdoc}

Details

in ArrayTrait at line line 35
array getValues()

Returns all cached values, with cache miss as null.

Return Value

array

in ArrayTrait at line line 57
hasItem($key)

{@inheritdoc}

Parameters

$key

in ArrayTrait at line line 70
clear()

{@inheritdoc}

in ArrayTrait at line line 80
deleteItem($key)

{@inheritdoc}

Parameters

$key

in ArrayTrait at line line 93
reset()

{@inheritdoc}

at line line 37
__construct(int $defaultLifetime, bool $storeSerialized = true)

Parameters

int $defaultLifetime
bool $storeSerialized Disabling serialization can lead to cache corruptions when storing mutable values but increases performance otherwise

at line line 46
get($key, $default = null)

{@inheritdoc}

Parameters

$key
$default

at line line 67
getMultiple($keys, $default = null)

{@inheritdoc}

Parameters

$keys
$default

at line line 86
deleteMultiple($keys)

{@inheritdoc}

Parameters

$keys

at line line 101
set($key, $value, $ttl = null)

{@inheritdoc}

Parameters

$key
$value
$ttl

at line line 113
setMultiple($values, $ttl = null)

{@inheritdoc}

Parameters

$values
$ttl