Zend Framework
3.0
|
Public Member Functions | |
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. | |
addItem | ( | $key, | |
$value | |||
) |
Add an item.
string | $key | |
mixed | $value |
\Zend\Cache\Exception\ExceptionInterface |
Implemented in Filesystem, AbstractAdapter, and BlackHole.
addItems | ( | array | $keyValuePairs | ) |
Add multiple items.
array | $keyValuePairs |
\Zend\Cache\Exception\ExceptionInterface |
Implemented in Filesystem, AbstractAdapter, and BlackHole.
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 |
\Zend\Cache\Exception\ExceptionInterface |
Implemented in AbstractAdapter, Filesystem, and BlackHole.
decrementItem | ( | $key, | |
$value | |||
) |
Decrement an item.
string | $key | |
int | $value |
\Zend\Cache\Exception\ExceptionInterface |
Implemented in AbstractAdapter, and BlackHole.
decrementItems | ( | array | $keyValuePairs | ) |
Decrement multiple items.
array | $keyValuePairs |
\Zend\Cache\Exception\ExceptionInterface |
Implemented in AbstractAdapter, and BlackHole.
getCapabilities | ( | ) |
getItem | ( | $key, | |
& | $success = null , |
||
& | $casToken = null |
||
) |
Get an item.
string | $key | |
bool | $success | |
mixed | $casToken |
\Zend\Cache\Exception\ExceptionInterface |
Implemented in Filesystem, AbstractAdapter, and BlackHole.
getItems | ( | array | $keys | ) |
Get multiple items.
array | $keys |
\Zend\Cache\Exception\ExceptionInterface |
Implemented in Filesystem, AbstractAdapter, and BlackHole.
getMetadata | ( | $key | ) |
Get metadata of an item.
string | $key |
\Zend\Cache\Exception\ExceptionInterface |
Implemented in Filesystem, AbstractAdapter, and BlackHole.
getMetadatas | ( | array | $keys | ) |
Get multiple metadata.
array | $keys |
\Zend\Cache\Exception\ExceptionInterface |
Implemented in AbstractAdapter, and BlackHole.
getOptions | ( | ) |
hasItem | ( | $key | ) |
Test if an item exists.
string | $key |
\Zend\Cache\Exception\ExceptionInterface |
Implemented in Filesystem, AbstractAdapter, and BlackHole.
hasItems | ( | array | $keys | ) |
Test multiple items.
array | $keys |
\Zend\Cache\Exception\ExceptionInterface |
Implemented in Filesystem, AbstractAdapter, and BlackHole.
incrementItem | ( | $key, | |
$value | |||
) |
Increment an item.
string | $key | |
int | $value |
\Zend\Cache\Exception\ExceptionInterface |
Implemented in AbstractAdapter, and BlackHole.
incrementItems | ( | array | $keyValuePairs | ) |
Increment multiple items.
array | $keyValuePairs |
\Zend\Cache\Exception\ExceptionInterface |
Implemented in AbstractAdapter, and BlackHole.
removeItem | ( | $key | ) |
Remove an item.
string | $key |
\Zend\Cache\Exception\ExceptionInterface |
Implemented in AbstractAdapter, Filesystem, and BlackHole.
removeItems | ( | array | $keys | ) |
Remove multiple items.
array | $keys |
\Zend\Cache\Exception\ExceptionInterface |
Implemented in AbstractAdapter, Filesystem, and BlackHole.
replaceItem | ( | $key, | |
$value | |||
) |
Replace an existing item.
string | $key | |
mixed | $value |
\Zend\Cache\Exception\ExceptionInterface |
Implemented in AbstractAdapter, Filesystem, and BlackHole.
replaceItems | ( | array | $keyValuePairs | ) |
Replace multiple existing items.
array | $keyValuePairs |
\Zend\Cache\Exception\ExceptionInterface |
Implemented in AbstractAdapter, Filesystem, and BlackHole.
setItem | ( | $key, | |
$value | |||
) |
Store an item.
string | $key | |
mixed | $value |
\Zend\Cache\Exception\ExceptionInterface |
Implemented in Filesystem, AbstractAdapter, and BlackHole.
setItems | ( | array | $keyValuePairs | ) |
Store multiple items.
array | $keyValuePairs |
\Zend\Cache\Exception\ExceptionInterface |
Implemented in Filesystem, AbstractAdapter, and BlackHole.
setOptions | ( | $options | ) |
Set options.
array | Traversable | Adapter\AdapterOptions | $options |
Implemented in Redis, AbstractAdapter, Memcache, Memcached, MongoDb, Dba, XCache, BlackHole, Apc, Filesystem, Apcu, WinCache, Memory, and Session.
touchItem | ( | $key | ) |
Reset lifetime of an item.
string | $key |
\Zend\Cache\Exception\ExceptionInterface |
Implemented in AbstractAdapter, Filesystem, and BlackHole.
touchItems | ( | array | $keys | ) |
Reset lifetime of multiple items.
array | $keys |
\Zend\Cache\Exception\ExceptionInterface |
Implemented in AbstractAdapter, Filesystem, and BlackHole.