ArrayAdapter
class ArrayAdapter implements AdapterInterface, LoggerAwareInterface
Traits
| LoggerAwareTrait | 
Methods
| __construct(int $defaultLifetime, bool $storeSerialized = true) | ||
|  getItem($key)  {@inheritdoc}  |  ||
|  getItems(array $keys = array())  {@inheritdoc}  |  ||
| array |  getValues()  Returns all cached values, with cache miss as null.  |  |
|  hasItem($key)  {@inheritdoc}  |  ||
|  clear()  {@inheritdoc}  |  ||
|  deleteItem($key)  {@inheritdoc}  |  ||
|  deleteItems(array $keys)  {@inheritdoc}  |  ||
|  save(CacheItemInterface $item)  {@inheritdoc}  |  ||
|  saveDeferred(CacheItemInterface $item)  {@inheritdoc}  |  ||
|  commit()  {@inheritdoc}  |  
Details
__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 | 
getItem($key)
{@inheritdoc}
Parameters
| $key | 
getItems(array $keys = array())
{@inheritdoc}
Parameters
| array | $keys | 
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 | 
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/3.2/Symfony/Component/Cache/Adapter/ArrayAdapter.html