Zend Framework  3.0
Public Attributes | Protected Member Functions | List of all members
AbstractZendServer Class Reference

Public Attributes

const NAMESPACE_SEPARATOR = '::'
 

Protected Member Functions

 internalGetItem (&$normalizedKey, &$success=null, &$casToken=null)
 Internal method to get an item.
 
 internalGetItems (array &$normalizedKeys)
 Internal method to get multiple items.
 
 internalHasItem (&$normalizedKey)
 Internal method to test if an item exists.
 
 internalHasItems (array &$normalizedKeys)
 Internal method to test multiple items.
 
 internalGetMetadatas (array &$normalizedKeys)
 Get metadata for multiple items.
 
 internalSetItem (&$normalizedKey, &$value)
 Internal method to store an item.
 
 internalRemoveItem (&$normalizedKey)
 Internal method to remove an item.
 
 internalGetCapabilities ()
 Internal method to get capabilities of this adapter.
 
 zdcStore ($internalKey, $value, $ttl)
 Store data into Zend Data Cache (zdc)
 
 zdcFetch ($internalKey)
 Fetch a single item from Zend Data Cache (zdc)
 
 zdcFetchMulti (array $internalKeys)
 Fetch multiple items from Zend Data Cache (zdc)
 
 zdcDelete ($internalKey)
 Delete data from Zend Data Cache (zdc)
 
- Protected Member Functions inherited from AbstractAdapter
 triggerPre ($eventName, ArrayObject $args)
 Trigger a pre event and return the event response collection.
 
 triggerPost ($eventName, ArrayObject $args, &$result)
 Triggers the PostEvent and return the result value.
 
 triggerException ($eventName, ArrayObject $args, &$result,\Exception $exception)
 Trigger an exception event.
 
 internalGetItem (&$normalizedKey, &$success=null, &$casToken=null)
 Internal method to get an item.
 
 internalGetItems (array &$normalizedKeys)
 Internal method to get multiple items.
 
 internalHasItem (&$normalizedKey)
 Internal method to test if an item exists.
 
 internalHasItems (array &$normalizedKeys)
 Internal method to test multiple items.
 
 internalGetMetadata (&$normalizedKey)
 Internal method to get metadata of an item.
 
 internalGetMetadatas (array &$normalizedKeys)
 Internal method to get multiple metadata.
 
 internalSetItem (&$normalizedKey, &$value)
 Internal method to store an item.
 
 internalSetItems (array &$normalizedKeyValuePairs)
 Internal method to store multiple items.
 
 internalAddItem (&$normalizedKey, &$value)
 Internal method to add an item.
 
 internalAddItems (array &$normalizedKeyValuePairs)
 Internal method to add multiple items.
 
 internalReplaceItem (&$normalizedKey, &$value)
 Internal method to replace an existing item.
 
 internalReplaceItems (array &$normalizedKeyValuePairs)
 Internal method to replace multiple existing items.
 
 internalCheckAndSetItem (&$token, &$normalizedKey, &$value)
 Internal method to set an item only if token matches.
 
 internalTouchItem (&$normalizedKey)
 Internal method to reset lifetime of an item.
 
 internalTouchItems (array &$normalizedKeys)
 Internal method to reset lifetime of multiple items.
 
 internalRemoveItem (&$normalizedKey)
 Internal method to remove an item.
 
 internalRemoveItems (array &$normalizedKeys)
 Internal method to remove multiple items.
 
 internalIncrementItem (&$normalizedKey, &$value)
 Internal method to increment an item.
 
 internalIncrementItems (array &$normalizedKeyValuePairs)
 Internal method to increment multiple items.
 
 internalDecrementItem (&$normalizedKey, &$value)
 Internal method to decrement an item.
 
 internalDecrementItems (array &$normalizedKeyValuePairs)
 Internal method to decrement multiple items.
 
 internalGetCapabilities ()
 Internal method to get capabilities of this adapter.
 
 normalizeKey (&$key)
 Validates and normalizes a key.
 
 normalizeKeys (array &$keys)
 Validates and normalizes multiple keys.
 
 normalizeKeyValuePairs (array &$keyValuePairs)
 Validates and normalizes an array of key-value pairs.
 

Additional Inherited Members

- Public Member Functions inherited from AbstractAdapter
 __construct ($options=null)
 Constructor.
 
 __destruct ()
 Destructor.
 
 setOptions ($options)
 Set options.
 
 getOptions ()
 Get options.
 
 setCaching ($flag)
 Enable/Disable caching.
 
 getCaching ()
 Get caching enabled.
 
 getEventManager ()
 Get the event manager.
 
 hasPlugin (Plugin\PluginInterface $plugin)
 Check if a plugin is registered.
 
 addPlugin (Plugin\PluginInterface $plugin, $priority=1)
 Register a plugin.
 
 removePlugin (Plugin\PluginInterface $plugin)
 Unregister an already registered plugin.
 
 getPluginRegistry ()
 Return registry of plugins.
 
 getItem ($key, &$success=null, &$casToken=null)
 Get an item.
 
 getItems (array $keys)
 Get multiple items.
 
 hasItem ($key)
 Test if an item exists.
 
 hasItems (array $keys)
 Test multiple items.
 
 getMetadata ($key)
 Get metadata of an item.
 
 getMetadatas (array $keys)
 Get multiple metadata.
 
 setItem ($key, $value)
 Store an item.
 
 setItems (array $keyValuePairs)
 Store multiple items.
 
 addItem ($key, $value)
 Add an item.
 
 addItems (array $keyValuePairs)
 Add multiple items.
 
 replaceItem ($key, $value)
 Replace an existing item.
 
 replaceItems (array $keyValuePairs)
 Replace multiple existing items.
 
 checkAndSetItem ($token, $key, $value)
 Set an item only if token matches.
 
 touchItem ($key)
 Reset lifetime of an item.
 
 touchItems (array $keys)
 Reset lifetime of multiple items.
 
 removeItem ($key)
 Remove an item.
 
 removeItems (array $keys)
 Remove multiple items.
 
 incrementItem ($key, $value)
 Increment an item.
 
 incrementItems (array $keyValuePairs)
 Increment multiple items.
 
 decrementItem ($key, $value)
 Decrement an item.
 
 decrementItems (array $keyValuePairs)
 Decrement multiple items.
 
 getCapabilities ()
 Get capabilities of this adapter.
 
- Protected Attributes inherited from AbstractAdapter
 $events = null
 
 $eventHandles = []
 
 $pluginRegistry
 
 $capabilities = null
 
 $capabilityMarker
 
 $options
 

Member Function Documentation

internalGetCapabilities ( )
protected

Internal method to get capabilities of this adapter.

Returns
Capabilities
internalGetItem ( $normalizedKey,
$success = null,
$casToken = null 
)
protected

Internal method to get an item.

Parameters
string$normalizedKey
bool$success
mixed$casToken
Returns
mixed Data on success, null on failure
Exceptions
Exception\ExceptionInterface
internalGetItems ( array &  $normalizedKeys)
protected

Internal method to get multiple items.

Parameters
array$normalizedKeys
Returns
array Associative array of keys and values
Exceptions
Exception\ExceptionInterface
internalGetMetadatas ( array &  $normalizedKeys)
protected

Get metadata for multiple items.

Parameters
array$normalizedKeys
Returns
array Associative array of keys and metadata

getMetadatas.pre(PreEvent) getMetadatas.post(PostEvent) getMetadatas.exception(ExceptionEvent)

internalHasItem ( $normalizedKey)
protected

Internal method to test if an item exists.

Parameters
string$normalizedKey
Returns
bool
Exceptions
Exception\ExceptionInterface
internalHasItems ( array &  $normalizedKeys)
protected

Internal method to test multiple items.

Parameters
array$normalizedKeys
Returns
array Array of found keys
Exceptions
Exception\ExceptionInterface
internalRemoveItem ( $normalizedKey)
protected

Internal method to remove an item.

Parameters
string$normalizedKey
Returns
bool
Exceptions
Exception\ExceptionInterface
internalSetItem ( $normalizedKey,
$value 
)
protected

Internal method to store an item.

Parameters
string$normalizedKey
mixed$value
Returns
bool
Exceptions
Exception\ExceptionInterface
zdcDelete (   $internalKey)
abstractprotected

Delete data from Zend Data Cache (zdc)

Parameters
string$internalKey
Returns
bool
Exceptions
Exception\RuntimeException
zdcFetch (   $internalKey)
abstractprotected

Fetch a single item from Zend Data Cache (zdc)

Parameters
string$internalKey
Returns
mixed The stored value or FALSE if item wasn't found
Exceptions
Exception\RuntimeException
zdcFetchMulti ( array  $internalKeys)
abstractprotected

Fetch multiple items from Zend Data Cache (zdc)

Parameters
array$internalKeys
Returns
array All found items
Exceptions
Exception\RuntimeException
zdcStore (   $internalKey,
  $value,
  $ttl 
)
abstractprotected

Store data into Zend Data Cache (zdc)

Parameters
string$internalKey
mixed$value
int$ttl
Returns
void
Exceptions
Exception\RuntimeException

Member Data Documentation

const NAMESPACE_SEPARATOR = '::'