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, bool $storeSerialized = true)
CacheItem getItem($key)

{@inheritdoc}

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, 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

getItems(array $keys = array())

{@inheritdoc}

return \Traversable|CacheItem[]

Parameters

array $keys

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.
http://api.symfony.com/4.0/Symfony/Component/Cache/Adapter/ArrayAdapter.html