Zend Framework
3.0
|
Public Member Functions | |
__construct ($options=null) | |
Constructor. | |
setOptions ($options) | |
Set options. | |
getOptions () | |
Get options. | |
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 () | |
Capabilities of this storage. | |
getAvailableSpace () | |
Get available space in bytes. | |
clearByNamespace ($namespace) | |
Remove items of given namespace. | |
clearByPrefix ($prefix) | |
Remove items matching given prefix. | |
clearExpired () | |
Remove expired items. | |
flush () | |
Flush the whole storage. | |
getIterator () | |
Get the storage iterator. | |
optimize () | |
Optimize the storage. | |
setTags ($key, array $tags) | |
Set tags to an item by given key. | |
getTags ($key) | |
Get tags of an item by given key. | |
clearByTags (array $tags, $disjunction=false) | |
Remove items matching given tags. | |
getTotalSpace () | |
Get total space in bytes. | |
Protected Attributes | |
$capabilities = null | |
$capabilityMarker | |
$options | |
__construct | ( | $options = null | ) |
Constructor.
null | array | \Traversable | AdapterOptions | $options |
addItem | ( | $key, | |
$value | |||
) |
addItems | ( | array | $keyValuePairs | ) |
Add multiple items.
array | $keyValuePairs |
Implements StorageInterface.
checkAndSetItem | ( | $token, | |
$key, | |||
$value | |||
) |
Set an item only if token matches.
It uses the token received from getItem() to check if the item has changed before overwriting it.
mixed | $token | |
string | $key | |
mixed | $value |
Implements StorageInterface.
clearByNamespace | ( | $namespace | ) |
Remove items of given namespace.
string | $namespace |
Implements ClearByNamespaceInterface.
clearByPrefix | ( | $prefix | ) |
Remove items matching given prefix.
string | $prefix |
Implements ClearByPrefixInterface.
clearByTags | ( | array | $tags, |
$disjunction = false |
|||
) |
Remove items matching given tags.
If $disjunction only one of the given tags must match else all given tags must match.
string[] | $tags | |
bool | $disjunction |
Implements TaggableInterface.
clearExpired | ( | ) |
decrementItem | ( | $key, | |
$value | |||
) |
Decrement an item.
string | $key | |
int | $value |
Implements StorageInterface.
decrementItems | ( | array | $keyValuePairs | ) |
Decrement multiple items.
array | $keyValuePairs |
Implements StorageInterface.
flush | ( | ) |
getAvailableSpace | ( | ) |
getCapabilities | ( | ) |
getItem | ( | $key, | |
& | $success = null , |
||
& | $casToken = null |
||
) |
Get an item.
string | $key | |
bool | $success | |
mixed | $casToken |
Implements StorageInterface.
getItems | ( | array | $keys | ) |
Get multiple items.
array | $keys |
Implements StorageInterface.
getIterator | ( | ) |
Get the storage iterator.
getMetadata | ( | $key | ) |
Get metadata of an item.
string | $key |
Implements StorageInterface.
getMetadatas | ( | array | $keys | ) |
Get multiple metadata.
array | $keys |
Implements StorageInterface.
getOptions | ( | ) |
getTags | ( | $key | ) |
Get tags of an item by given key.
string | $key |
Implements TaggableInterface.
getTotalSpace | ( | ) |
hasItem | ( | $key | ) |
hasItems | ( | array | $keys | ) |
Test multiple items.
array | $keys |
Implements StorageInterface.
incrementItem | ( | $key, | |
$value | |||
) |
Increment an item.
string | $key | |
int | $value |
Implements StorageInterface.
incrementItems | ( | array | $keyValuePairs | ) |
Increment multiple items.
array | $keyValuePairs |
Implements StorageInterface.
optimize | ( | ) |
removeItem | ( | $key | ) |
removeItems | ( | array | $keys | ) |
Remove multiple items.
array | $keys |
Implements StorageInterface.
replaceItem | ( | $key, | |
$value | |||
) |
Replace an existing item.
string | $key | |
mixed | $value |
Implements StorageInterface.
replaceItems | ( | array | $keyValuePairs | ) |
Replace multiple existing items.
array | $keyValuePairs |
Implements StorageInterface.
setItem | ( | $key, | |
$value | |||
) |
setItems | ( | array | $keyValuePairs | ) |
Store multiple items.
array | $keyValuePairs |
Implements StorageInterface.
setOptions | ( | $options | ) |
Set options.
array | \Traversable | AdapterOptions | $options |
Implements StorageInterface.
setTags | ( | $key, | |
array | $tags | ||
) |
Set tags to an item by given key.
An empty array will remove all tags.
string | $key | |
string[] | $tags |
Implements TaggableInterface.
touchItem | ( | $key | ) |
touchItems | ( | array | $keys | ) |
Reset lifetime of multiple items.
array | $keys |
Implements StorageInterface.
|
protected |
|
protected |
|
protected |