Zend\Cache\Storage\Adapter\BlackHole
Synopsis
class BlackHole
implements
StorageInterface,AvailableSpaceCapableInterface,ClearByNamespaceInterface,ClearByPrefixInterface,ClearExpiredInterface,FlushableInterface,IterableInterface,OptimizableInterface,TaggableInterface,TotalSpaceCapableInterface
{
- // members
- protected null|Capabilities $capabilities;
- protected null|object $capabilityMarker;
- protected null|AdapterOptions $options;
- // methods
- public void __construct()
- public StorageInterface setOptions()
- public AdapterOptions getOptions()
- public mixed getItem()
- public array getItems()
- public bool hasItem()
- public array hasItems()
- public array|bool getMetadata()
- public array getMetadatas()
- public bool setItem()
- public array setItems()
- public bool addItem()
- public array addItems()
- public bool replaceItem()
- public array replaceItems()
- public bool checkAndSetItem()
- public bool touchItem()
- public array touchItems()
- public bool removeItem()
- public array removeItems()
- public int|bool incrementItem()
- public array incrementItems()
- public int|bool decrementItem()
- public array decrementItems()
- public Capabilities getCapabilities()
- public int|float getAvailableSpace()
- public bool clearByNamespace()
- public bool clearByPrefix()
- public bool clearExpired()
- public bool flush()
- public KeyIterator getIterator()
- public bool optimize()
- public bool setTags()
- public array getTags()
- public bool clearByTags()
- public int|float getTotalSpace()
Hierarchy
Implements
- Zend\Cache\Storage\StorageInterface
- Zend\Cache\Storage\AvailableSpaceCapableInterface
- Zend\Cache\Storage\ClearByNamespaceInterface
- Zend\Cache\Storage\ClearByPrefixInterface
- Zend\Cache\Storage\ClearExpiredInterface
- Zend\Cache\Storage\FlushableInterface
- Zend\Cache\Storage\IterableInterface
- Zend\Cache\Storage\OptimizableInterface
- Zend\Cache\Storage\TaggableInterface
- Zend\Cache\Storage\TotalSpaceCapableInterface
Members
protected
- $capabilities
—
Zend\Cache\Storage\Adapter\null|Capabilities
Capabilities of this adapter - $capabilityMarker
—
Zend\Cache\Storage\Adapter\null|object
Marker to change capabilities - $options
—
Zend\Cache\Storage\Adapter\null|AdapterOptions
options
Methods
public
- __construct() — Constructor
- addItem() — Add an item.
- addItems() — Add multiple items.
- checkAndSetItem() — Set an item only if token matches
- clearByNamespace() — Remove items of given namespace
- clearByPrefix() — Remove items matching given prefix
- clearByTags() — Remove items matching given tags.
- clearExpired() — Remove expired items
- decrementItem() — Decrement an item.
- decrementItems() — Decrement multiple items.
- flush() — Flush the whole storage
- getAvailableSpace() — Get available space in bytes
- getCapabilities() — Capabilities of this storage
- getItem() — Get an item.
- getItems() — Get multiple items.
- getIterator() — Get the storage iterator
- getMetadata() — Get metadata of an item.
- getMetadatas() — Get multiple metadata
- getOptions() — Get options
- getTags() — Get tags of an item by given key
- getTotalSpace() — Get total space in bytes
- hasItem() — Test if an item exists.
- hasItems() — Test multiple items.
- incrementItem() — Increment an item.
- incrementItems() — Increment multiple items.
- optimize() — Optimize the storage
- removeItem() — Remove an item.
- removeItems() — Remove multiple items.
- replaceItem() — Replace an existing item.
- replaceItems() — Replace multiple existing items.
- setItem() — Store an item.
- setItems() — Store multiple items.
- setOptions() — Set options.
- setTags() — Set tags to an item by given key.
- touchItem() — Reset lifetime of an item
- touchItems() — Reset lifetime of multiple items.