Class CacheItemPoolDecorator

Summary

Fully Qualified Name: Zend\Cache\Psr\CacheItemPool\CacheItemPoolDecorator
Implements: CacheItemPoolInterface

Description

Decorate zend-cache adapters as PSR-6 cache item pools.

Methods

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

Method Details

__construct()

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:

__destruct()

Destructor.

Saves any deferred items that have not been committed

Returns:

clear()

{@inheritdoc}

If the storage adapter supports namespaces and one has been set, only that namespace is cleared; otherwise entire cache is flushed.

Returns:

commit()

{@inheritdoc}

Returns:

deleteItem()

{@inheritdoc}

Parameter Name Type Description
$key

Returns:

deleteItems()

{@inheritdoc}

Parameter Name Type Description
$keys

Returns:

getItem()

{@inheritdoc}

Parameter Name Type Description
$key

Returns:

getItems()

{@inheritdoc}

Parameter Name Type Description
$keys

Returns:

hasItem()

{@inheritdoc}

Parameter Name Type Description
$key

Returns:

save()

{@inheritdoc}

Parameter Name Type Description
$item

Returns:

saveDeferred()

{@inheritdoc}

Parameter Name Type Description
$item

Returns:

Top