ArrayCache
class ArrayCache implements CacheInterface, LoggerAwareInterface
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 | |
| __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 | 
__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/3.3/Symfony/Component/Cache/Simple/ArrayCache.html