ArrayCache
class ArrayCache implements CacheInterface, 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) | ||
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
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 |
get($key, $default = null)
{@inheritdoc}
Parameters
$key | ||
$default |
getMultiple($keys, $default = null)
{@inheritdoc}
Parameters
$keys | ||
$default |
deleteMultiple($keys)
{@inheritdoc}
Parameters
$keys |
set($key, $value, $ttl = null)
{@inheritdoc}
Parameters
$key | ||
$value | ||
$ttl |
setMultiple($values, $ttl = null)
{@inheritdoc}
Parameters
$values | ||
$ttl |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Cache/Simple/ArrayCache.html