class ArrayAdapter implements AdapterInterface, 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

getItem($key)

{@inheritdoc}

getItems(array $keys = [])

{@inheritdoc}

deleteItems(array $keys)

{@inheritdoc}

save(CacheItemInterface $item)

{@inheritdoc}

saveDeferred(CacheItemInterface $item)

{@inheritdoc}

commit()

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

{@inheritdoc}

Parameters

$key

in ArrayTrait at line 53
clear()

{@inheritdoc}

in ArrayTrait at line 63
deleteItem($key)

{@inheritdoc}

Parameters

$key

in ArrayTrait at line 75
reset()

{@inheritdoc}

at line 33
__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 54
CacheItem getItem($key)

{@inheritdoc}

Parameters

$key

Return Value

CacheItem

at line 81
Traversable|CacheItem[] getItems(array $keys = [])

{@inheritdoc}

Parameters

array $keys

Return Value

Traversable|CacheItem[]

at line 93
deleteItems(array $keys)

{@inheritdoc}

Parameters

array $keys

at line 105
save(CacheItemInterface $item)

{@inheritdoc}

Parameters

CacheItemInterface $item

at line 143
saveDeferred(CacheItemInterface $item)

{@inheritdoc}

Parameters

CacheItemInterface $item

at line 151
commit()

{@inheritdoc}