W3cubDocs

/Symfony 4.1

ArrayAdapter

class ArrayAdapter implements AdapterInterface, LoggerAwareInterface, ResettableInterface

Traits

ArrayTrait
LoggerAwareTrait

Methods

array getValues()

Returns all cached values, with cache miss as null.

from ArrayTrait
hasItem($key)

{@inheritdoc}

from ArrayTrait
clear()

{@inheritdoc}

from ArrayTrait
deleteItem($key)

{@inheritdoc}

from ArrayTrait
reset()

{@inheritdoc}

from ArrayTrait
__construct(int $defaultLifetime = 0, bool $storeSerialized = true)
CacheItem getItem($key)

{@inheritdoc}

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

{@inheritdoc}

deleteItems(array $keys)

{@inheritdoc}

save(CacheItemInterface $item)

{@inheritdoc}

saveDeferred(CacheItemInterface $item)

{@inheritdoc}

commit()

{@inheritdoc}

Details

array getValues()

Returns all cached values, with cache miss as null.

Return Value

array

hasItem($key)

{@inheritdoc}

Parameters

$key

clear()

{@inheritdoc}

deleteItem($key)

{@inheritdoc}

Parameters

$key

reset()

{@inheritdoc}

__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

CacheItem getItem($key)

{@inheritdoc}

Parameters

$key

Return Value

CacheItem

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

{@inheritdoc}

Parameters

array $keys

Return Value

Traversable|CacheItem[]

deleteItems(array $keys)

{@inheritdoc}

Parameters

array $keys

save(CacheItemInterface $item)

{@inheritdoc}

Parameters

CacheItemInterface $item

saveDeferred(CacheItemInterface $item)

{@inheritdoc}

Parameters

CacheItemInterface $item

commit()

{@inheritdoc}

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Cache/Adapter/ArrayAdapter.html