class ArrayCache implements CacheInterface, LoggerAwareInterface, ResettableInterface
ArrayTrait | |
LoggerAwareTrait |
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) | ||
get($key, $default = null) {@inheritdoc} | ||
getMultiple($keys, $default = null) {@inheritdoc} | ||
deleteMultiple($keys) {@inheritdoc} | ||
set($key, $value, $ttl = null) {@inheritdoc} | ||
setMultiple($values, $ttl = null) {@inheritdoc} |
Returns all cached values, with cache miss as null.
array |
{@inheritdoc}
$key |
{@inheritdoc}
{@inheritdoc}
$key |
{@inheritdoc}
int | $defaultLifetime | |
bool | $storeSerialized | Disabling serialization can lead to cache corruptions when storing mutable values but increases performance otherwise |
{@inheritdoc}
$key | ||
$default |
{@inheritdoc}
$keys | ||
$default |
{@inheritdoc}
$keys |
{@inheritdoc}
$key | ||
$value | ||
$ttl |
{@inheritdoc}
$values | ||
$ttl |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Cache/Simple/ArrayCache.html