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 = 0, 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 35
array getValues()

Returns all cached values, with cache miss as null.

Return Value

array

in ArrayTrait at line 57
hasItem($key)

{@inheritdoc}

Parameters

$key

in ArrayTrait at line 70
clear()

{@inheritdoc}

in ArrayTrait at line 80
deleteItem($key)

{@inheritdoc}

Parameters

$key

in ArrayTrait at line 93
reset()

{@inheritdoc}

at line 37
__construct(int $defaultLifetime = 0, 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 46
get($key, $default = null)

{@inheritdoc}

Parameters

$key
$default

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

{@inheritdoc}

Parameters

$keys
$default

at line 86
deleteMultiple($keys)

{@inheritdoc}

Parameters

$keys

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

{@inheritdoc}

Parameters

$key
$value
$ttl

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

{@inheritdoc}

Parameters

$values
$ttl