|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Inheritance diagram for Psr\SimpleCache\CacheInterface:
Collaboration diagram for Psr\SimpleCache\CacheInterface:Public Member Functions | |
| get ($key, $default=null) | |
| Fetches a value from the cache. More... | |
| set ($key, $value, $ttl=null) | |
| Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time. More... | |
| delete ($key) | |
| Delete an item from the cache by its unique key. More... | |
| clear () | |
| Wipes clean the entire cache's keys. More... | |
| getMultiple ($keys, $default=null) | |
| Obtains multiple cache items by their unique keys. More... | |
| setMultiple ($values, $ttl=null) | |
| Persists a set of key => value pairs in the cache, with an optional TTL. More... | |
| deleteMultiple ($keys) | |
| Deletes multiple cache items in a single operation. More... | |
| has ($key) | |
| Determines whether an item is present in the cache. More... | |
Definition at line 5 of file CacheInterface.php.
| Psr\SimpleCache\CacheInterface::clear | ( | ) |
Wipes clean the entire cache's keys.
Implemented in PhpOffice\PhpSpreadsheet\Collection\Memory.
| Psr\SimpleCache\CacheInterface::delete | ( | $key | ) |
Delete an item from the cache by its unique key.
| string | $key | The unique cache key of the item to delete. |
Psr\SimpleCache\InvalidArgumentException MUST be thrown if the $key string is not a legal value.
Implemented in PhpOffice\PhpSpreadsheet\Collection\Memory.
| Psr\SimpleCache\CacheInterface::deleteMultiple | ( | $keys | ) |
Deletes multiple cache items in a single operation.
| iterable | $keys | A list of string-based keys to be deleted. |
Psr\SimpleCache\InvalidArgumentException MUST be thrown if $keys is neither an array nor a Traversable, or if any of the $keys are not a legal value.
Implemented in PhpOffice\PhpSpreadsheet\Collection\Memory.
| Psr\SimpleCache\CacheInterface::get | ( | $key, | |
$default = null |
|||
| ) |
Fetches a value from the cache.
| string | $key | The unique key of this item in the cache. |
| mixed | $default | Default value to return if the key does not exist. |
Psr\SimpleCache\InvalidArgumentException MUST be thrown if the $key string is not a legal value.
Implemented in PhpOffice\PhpSpreadsheet\Collection\Memory.
| Psr\SimpleCache\CacheInterface::getMultiple | ( | $keys, | |
$default = null |
|||
| ) |
Obtains multiple cache items by their unique keys.
| iterable | $keys | A list of keys that can obtained in a single operation. |
| mixed | $default | Default value to return for keys that do not exist. |
Psr\SimpleCache\InvalidArgumentException MUST be thrown if $keys is neither an array nor a Traversable, or if any of the $keys are not a legal value.
Implemented in PhpOffice\PhpSpreadsheet\Collection\Memory.
| Psr\SimpleCache\CacheInterface::has | ( | $key | ) |
Determines whether an item is present in the cache.
NOTE: It is recommended that has() is only to be used for cache warming type purposes and not to be used within your live applications operations for get/set, as this method is subject to a race condition where your has() will return true and immediately after, another script can remove it making the state of your app out of date.
| string | $key | The cache item key. |
Psr\SimpleCache\InvalidArgumentException MUST be thrown if the $key string is not a legal value.
Implemented in PhpOffice\PhpSpreadsheet\Collection\Memory.
| Psr\SimpleCache\CacheInterface::set | ( | $key, | |
| $value, | |||
$ttl = null |
|||
| ) |
Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
| string | $key | The key of the item to store. |
| mixed | $value | The value of the item to store, must be serializable. |
| null | int | \DateInterval | $ttl | Optional. The TTL value of this item. If no value is sent and the driver supports TTL then the library may set a default value for it or let the driver take care of that. |
Psr\SimpleCache\InvalidArgumentException MUST be thrown if the $key string is not a legal value.
Implemented in PhpOffice\PhpSpreadsheet\Collection\Memory.
| Psr\SimpleCache\CacheInterface::setMultiple | ( | $values, | |
$ttl = null |
|||
| ) |
Persists a set of key => value pairs in the cache, with an optional TTL.
| iterable | $values | A list of key => value pairs for a multiple-set operation. |
| null | int | \DateInterval | $ttl | Optional. The TTL value of this item. If no value is sent and the driver supports TTL then the library may set a default value for it or let the driver take care of that. |
Psr\SimpleCache\InvalidArgumentException MUST be thrown if $values is neither an array nor a Traversable, or if any of the $values are not a legal value.
Implemented in PhpOffice\PhpSpreadsheet\Collection\Memory.