|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Key-value store scoped to one namespace. More...
Inheritance diagram for ILIAS\KeyValueStorage\Store:
Collaboration diagram for ILIAS\KeyValueStorage\Store:Public Member Functions | |
| has (string $key) | |
| Reads the value along, so that a following get() does not read again. More... | |
| get (string $key, Transformation $transformation) | |
| Reads a value and applies a Refinery transformation, like HTTP request wrappers. More... | |
| getMany (array $transformations) | |
| Reads several known keys, each with its own Refinery transformation. More... | |
| keys () | |
| The keys this namespace currently holds, sorted as strings. More... | |
| set (string $key, mixed $value) | |
| delete (string $key) | |
| clear () | |
| Removes every entry of this namespace, and only of this namespace. More... | |
Key-value store scoped to one namespace.
This is application state, not a cache: values are kept until they are changed or cleared. Use ILIAS\Cache for data that may be dropped at any time.
| ILIAS\KeyValueStorage\Store::clear | ( | ) |
Removes every entry of this namespace, and only of this namespace.
Implemented in ILIAS\KeyValueStorage\Internal\NamespacedStore.
| ILIAS\KeyValueStorage\Store::delete | ( | string | $key | ) |
InvalidArgumentException if the key is invalid
Implemented in ILIAS\KeyValueStorage\Internal\NamespacedStore.
| ILIAS\KeyValueStorage\Store::get | ( | string | $key, |
| Transformation | $transformation | ||
| ) |
Reads a value and applies a Refinery transformation, like HTTP request wrappers.
Absent keys are passed to the transformation as null.
InvalidArgumentException if the key is invalid
| Exception |
InvalidStoredValueException if the stored value cannot be read back
Implemented in ILIAS\KeyValueStorage\Internal\NamespacedStore.
| ILIAS\KeyValueStorage\Store::getMany | ( | array | $transformations | ) |
Reads several known keys, each with its own Refinery transformation.
The result has the same keys as the given map, in the same order. Absent keys are passed to their transformation as null, like {
| array<string,Transformation> | $transformations |
InvalidArgumentException if a key is invalid or an entry is not a transformation
| Exception |
InvalidStoredValueException if a stored value cannot be read back
Implemented in ILIAS\KeyValueStorage\Internal\NamespacedStore.
| ILIAS\KeyValueStorage\Store::has | ( | string | $key | ) |
Reads the value along, so that a following get() does not read again.
InvalidArgumentException if the key is invalid
| Exception |
InvalidStoredValueException if the stored value cannot be read back
Implemented in ILIAS\KeyValueStorage\Internal\NamespacedStore.
| ILIAS\KeyValueStorage\Store::keys | ( | ) |
The keys this namespace currently holds, sorted as strings.
Implemented in ILIAS\KeyValueStorage\Internal\NamespacedStore.
| ILIAS\KeyValueStorage\Store::set | ( | string | $key, |
| mixed | $value | ||
| ) |
InvalidArgumentException if the key is invalid or the value cannot be stored
Implemented in ILIAS\KeyValueStorage\Internal\NamespacedStore.