class ArrayCache implements CacheInterface, LoggerAwareInterface

Traits

LoggerAwareTrait

Methods

array
getValues()

Returns all cached values, with cache miss as null.

hasItem($key)

{@inheritdoc}

clear()

{@inheritdoc}

deleteItem($key)

{@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 43
hasItem($key)

{@inheritdoc}

Parameters

$key

in ArrayTrait at line line 53
clear()

{@inheritdoc}

in ArrayTrait at line line 63
deleteItem($key)

{@inheritdoc}

Parameters

$key

at line line 36
__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 45
get($key, $default = null)

{@inheritdoc}

Parameters

$key
$default

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

{@inheritdoc}

Parameters

$keys
$default

at line line 72
deleteMultiple($keys)

{@inheritdoc}

Parameters

$keys

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

{@inheritdoc}

Parameters

$key
$value
$ttl

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

{@inheritdoc}

Parameters

$values
$ttl