Zend\Cache\Storage\Adapter\ZendServerShm
Synopsis
class ZendServerShm
extends AbstractZendServer
implements
ClearByNamespaceInterface,FlushableInterface,TotalSpaceCapableInterface
{
- // Inherited constants from AbstractZendServer
- const NAMESPACE_SEPARATOR = '::';
- // Inherited members from AbstractAdapter
- protected null|EventManagerInterface $events;
- protected array $eventHandles;
- protected SplObjectStorage $pluginRegistry;
- protected null|Capabilities $capabilities;
- protected null|object $capabilityMarker;
- protected mixed $options;
- // methods
- public void __construct()
- public bool flush()
- public bool clearByNamespace()
- public int|float getTotalSpace()
- protected void zdcStore()
- protected mixed zdcFetch()
- protected array zdcFetchMulti()
- protected bool zdcDelete()
- // Inherited methods from AbstractZendServer
- protected mixed internalGetItem()
- protected array internalGetItems()
- protected bool internalHasItem()
- protected array internalHasItems()
- protected array internalGetMetadatas()
- protected bool internalSetItem()
- protected bool internalRemoveItem()
- protected Capabilities internalGetCapabilities()
- protected abstract void zdcStore()
- protected abstract mixed zdcFetch()
- protected abstract array zdcFetchMulti()
- protected abstract bool zdcDelete()
- // Inherited methods from AbstractAdapter
- public void __construct()
- public void __destruct()
- public AbstractAdapter setOptions()
- public AdapterOptions getOptions()
- public AbstractAdapter setCaching()
- public bool getCaching()
- public EventManagerInterface getEventManager()
- protected ResponseCollection triggerPre()
- protected mixed triggerPost()
- protected mixed triggerException()
- public bool hasPlugin()
- public AbstractAdapter addPlugin()
- public AbstractAdapter removePlugin()
- public SplObjectStorage getPluginRegistry()
- public mixed getItem()
- protected abstract mixed internalGetItem()
- public array getItems()
- protected array internalGetItems()
- public bool hasItem()
- protected bool internalHasItem()
- public array hasItems()
- protected array internalHasItems()
- public array|bool getMetadata()
- protected array|bool internalGetMetadata()
- public array getMetadatas()
- protected array internalGetMetadatas()
- public bool setItem()
- protected abstract bool internalSetItem()
- public array setItems()
- protected array internalSetItems()
- public bool addItem()
- protected bool internalAddItem()
- public array addItems()
- protected array internalAddItems()
- public bool replaceItem()
- protected bool internalReplaceItem()
- public array replaceItems()
- protected array internalReplaceItems()
- public bool checkAndSetItem()
- protected bool internalCheckAndSetItem()
- public bool touchItem()
- protected bool internalTouchItem()
- public array touchItems()
- protected array internalTouchItems()
- public bool removeItem()
- protected abstract bool internalRemoveItem()
- public array removeItems()
- protected array internalRemoveItems()
- public int|bool incrementItem()
- protected int|bool internalIncrementItem()
- public array incrementItems()
- protected array internalIncrementItems()
- public int|bool decrementItem()
- protected int|bool internalDecrementItem()
- public array decrementItems()
- protected array internalDecrementItems()
- public Capabilities getCapabilities()
- protected Capabilities internalGetCapabilities()
- protected void normalizeKey()
- protected void normalizeKeys()
- protected void normalizeKeyValuePairs()
Hierarchy
Extends
Implements
Constants
Name | Value |
---|---|
NAMESPACE_SEPARATOR | '::' |
Members
protected
- $capabilities
—
Zend\Cache\Storage\Adapter\null|Capabilities
Capabilities of this adapter - $capabilityMarker
—
Zend\Cache\Storage\Adapter\null|object
Marker to change capabilities - $eventHandles
—
array
Event handles of this adapter - $events
—
Zend\Cache\Storage\Adapter\null|EventManagerInterface
The used EventManager if any - $options
—
mixed
options - $pluginRegistry
—
SplObjectStorage
The plugin registry
Methods
protected
- zdcDelete() — Delete data from Zend Data SHM Cache
- zdcFetch() — Fetch a single item from Zend Data SHM Cache
- zdcFetchMulti() — Fetch multiple items from Zend Data SHM Cache
- zdcStore() — Store data into Zend Data SHM Cache
public
- __construct() — Constructor
- clearByNamespace() — Remove items of given namespace
- flush() — Flush the whole storage
- getTotalSpace() — Get total space in bytes
Inherited from Zend\Cache\Storage\Adapter\AbstractZendServer
protected
- internalGetCapabilities() — Internal method to get capabilities of this adapter
- internalGetItem() — Internal method to get an item.
- internalGetItems() — Internal method to get multiple items.
- internalGetMetadatas() — Get metadata for multiple items
- internalHasItem() — Internal method to test if an item exists.
- internalHasItems() — Internal method to test multiple items.
- internalRemoveItem() — Internal method to remove an item.
- internalSetItem() — Internal method to store an item.
- zdcDelete() — Delete data from Zend Data Cache (zdc)
- zdcFetch() — Fetch a single item from Zend Data Cache (zdc)
- zdcFetchMulti() — Fetch multiple items from Zend Data Cache (zdc)
- zdcStore() — Store data into Zend Data Cache (zdc)
Inherited from Zend\Cache\Storage\Adapter\AbstractAdapter
protected
- internalAddItem() — Internal method to add an item.
- internalAddItems() — Internal method to add multiple items.
- internalCheckAndSetItem() — Internal method to set an item only if token matches
- internalDecrementItem() — Internal method to decrement an item.
- internalDecrementItems() — Internal method to decrement multiple items.
- internalGetCapabilities() — Internal method to get capabilities of this adapter
- internalGetItem() — Internal method to get an item.
- internalGetItems() — Internal method to get multiple items.
- internalGetMetadata() — Internal method to get metadata of an item.
- internalGetMetadatas() — Internal method to get multiple metadata
- internalHasItem() — Internal method to test if an item exists.
- internalHasItems() — Internal method to test multiple items.
- internalIncrementItem() — Internal method to increment an item.
- internalIncrementItems() — Internal method to increment multiple items.
- internalRemoveItem() — Internal method to remove an item.
- internalRemoveItems() — Internal method to remove multiple items.
- internalReplaceItem() — Internal method to replace an existing item.
- internalReplaceItems() — Internal method to replace multiple existing items.
- internalSetItem() — Internal method to store an item.
- internalSetItems() — Internal method to store multiple items.
- internalTouchItem() — Internal method to reset lifetime of an item
- internalTouchItems() — Internal method to reset lifetime of multiple items.
- normalizeKey() — Validates and normalizes a key
- normalizeKeyValuePairs() — Validates and normalizes an array of key-value pairs
- normalizeKeys() — Validates and normalizes multiple keys
- triggerException() — Trigger an exception event
- triggerPost() — Triggers the PostEvent and return the result value.
- triggerPre() — Trigger a pre event and return the event response collection
public
- addItem() — Add an item.
- addItems() — Add multiple items.
- addPlugin() — Register a plugin
- checkAndSetItem() — Set an item only if token matches
- decrementItem() — Decrement an item.
- decrementItems() — Decrement multiple items.
- getCaching() — Get caching enabled.
- getCapabilities() — Get capabilities of this adapter
- getEventManager() — Get the event manager
- getItem() — Get an item.
- getItems() — Get multiple items.
- getMetadata() — Get metadata of an item.
- getMetadatas() — Get multiple metadata
- getOptions() — Get options.
- getPluginRegistry() — Return registry of plugins
- hasItem() — Test if an item exists.
- hasItems() — Test multiple items.
- hasPlugin() — Check if a plugin is registered
- incrementItem() — Increment an item.
- incrementItems() — Increment multiple items.
- removeItem() — Remove an item.
- removeItems() — Remove multiple items.
- removePlugin() — Unregister an already registered plugin
- replaceItem() — Replace an existing item.
- replaceItems() — Replace multiple existing items.
- setCaching() — Enable/Disable caching.
- setItem() — Store an item.
- setItems() — Store multiple items.
- setOptions() — Set options.
- touchItem() — Reset lifetime of an item
- touchItems() — Reset lifetime of multiple items.