Fully Qualified Name: | Zend\Cache\Psr\CacheItemPool\CacheItemPoolDecorator |
Implements: | CacheItemPoolInterface |
Decorate zend-cache adapters as PSR-6 cache item pools.
Name | Description | Defined By |
---|---|---|
__construct() | Constructor. | CacheItemPoolDecorator |
__destruct() | Destructor. | CacheItemPoolDecorator |
clear() | {@inheritdoc} | CacheItemPoolDecorator |
commit() | {@inheritdoc} | CacheItemPoolDecorator |
deleteItem() | {@inheritdoc} | CacheItemPoolDecorator |
deleteItems() | {@inheritdoc} | CacheItemPoolDecorator |
getItem() | {@inheritdoc} | CacheItemPoolDecorator |
getItems() | {@inheritdoc} | CacheItemPoolDecorator |
hasItem() | {@inheritdoc} | CacheItemPoolDecorator |
save() | {@inheritdoc} | CacheItemPoolDecorator |
saveDeferred() | {@inheritdoc} | CacheItemPoolDecorator |
Constructor.
PSR-6 requires that all implementing libraries support TTL so the given storage adapter must also support static TTL or an exception will be raised. Currently the following adapters do not support static TTL: Dba, Filesystem, Memory, Session and Redis < v2.
Parameter Name | Type | Description |
---|---|---|
$storage | \StorageInterface |
Returns:
Destructor.
Saves any deferred items that have not been committed
Returns:
{@inheritdoc}
If the storage adapter supports namespaces and one has been set, only that namespace is cleared; otherwise entire cache is flushed.
Returns:
{@inheritdoc}
Returns:
{@inheritdoc}
Parameter Name | Type | Description |
---|---|---|
$key |
Returns:
{@inheritdoc}
Parameter Name | Type | Description |
---|---|---|
$keys |
Returns:
{@inheritdoc}
Parameter Name | Type | Description |
---|---|---|
$key |
Returns:
{@inheritdoc}
Parameter Name | Type | Description |
---|---|---|
$keys |
Returns:
{@inheritdoc}
Parameter Name | Type | Description |
---|---|---|
$key |
Returns:
{@inheritdoc}
Parameter Name | Type | Description |
---|---|---|
$item |
Returns:
{@inheritdoc}
Parameter Name | Type | Description |
---|---|---|
$item |
Returns: