ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
|
Public Member Functions | |
__construct (private Request $request) | |
lock (float $seconds) | |
Locks the container for a given amount of seconds (max 300), in this time, get() will return null and has() will return false. More... | |
isLocked () | |
Returns true if the container is locked. More... | |
has (string $key) | |
Returns true if the container contains a value for the given key. More... | |
get (string $key, Transformation $transformation) | |
Returns the value for the given key, or null if the key does not exist. More... | |
set (string $key, array|bool|int|string|null $value, ?int $ttl=null) | |
delete (string $key) | |
Deletes the value for the given key. More... | |
flush () | |
Deletes all values in the container. More... | |
getAdaptorName () | |
Returns the name of the adaptop used (such as apc, memcache, phpstatic) More... | |
getContainerName () | |
Returns the name of the container. More... | |
![]() | |
set (string $key, string|int|array|bool|null $value, ?int $ttl=null) | |
Sets the value for the given key. More... | |
Definition at line 28 of file VoidContainer.php.
ILIAS\Cache\Container\VoidContainer::__construct | ( | private Request | $request | ) |
Definition at line 30 of file VoidContainer.php.
ILIAS\Cache\Container\VoidContainer::delete | ( | string | $key | ) |
Deletes the value for the given key.
Implements ILIAS\Cache\Container\Container.
Definition at line 59 of file VoidContainer.php.
ILIAS\Cache\Container\VoidContainer::flush | ( | ) |
Deletes all values in the container.
Implements ILIAS\Cache\Container\Container.
Definition at line 64 of file VoidContainer.php.
ILIAS\Cache\Container\VoidContainer::get | ( | string | $key, |
Transformation | $transformation | ||
) |
Returns the value for the given key, or null if the key does not exist.
Implements ILIAS\Cache\Container\Container.
Definition at line 49 of file VoidContainer.php.
References null.
ILIAS\Cache\Container\VoidContainer::getAdaptorName | ( | ) |
Returns the name of the adaptop used (such as apc, memcache, phpstatic)
Implements ILIAS\Cache\Container\Container.
Definition at line 69 of file VoidContainer.php.
ILIAS\Cache\Container\VoidContainer::getContainerName | ( | ) |
Returns the name of the container.
Implements ILIAS\Cache\Container\Container.
Definition at line 74 of file VoidContainer.php.
ILIAS\Cache\Container\VoidContainer::has | ( | string | $key | ) |
Returns true if the container contains a value for the given key.
Implements ILIAS\Cache\Container\Container.
Definition at line 44 of file VoidContainer.php.
ILIAS\Cache\Container\VoidContainer::isLocked | ( | ) |
Returns true if the container is locked.
Implements ILIAS\Cache\Container\Container.
Definition at line 39 of file VoidContainer.php.
ILIAS\Cache\Container\VoidContainer::lock | ( | float | $seconds | ) |
Locks the container for a given amount of seconds (max 300), in this time, get() will return null and has() will return false.
Implements ILIAS\Cache\Container\Container.
Definition at line 35 of file VoidContainer.php.
ILIAS\Cache\Container\VoidContainer::set | ( | string | $key, |
array|bool|int|string|null | $value, | ||
?int | $ttl = null |
||
) |
Definition at line 54 of file VoidContainer.php.