ILIAS
trunk Revision v11.0_alpha-1811-gd2d5443e411
|
Public Member Functions | |
__construct (private Request $request, private Adaptor $adaptor, private Config $config) | |
isLocked () | |
Returns true if the container is locked. More... | |
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... | |
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, string|int|array|bool|null $value, ?int $ttl=null) | |
Sets the value for the given key. More... | |
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... | |
Protected Member Functions | |
buildFinalTransformation (Transformation $transformation) | |
getNullFallback () | |
Private Member Functions | |
pack (mixed $value) | |
packRecursive (array $value) | |
unprefix (string $value) | |
unpack (?string $value) | |
unpackRecursive (array $value) | |
Private Attributes | |
const | LOCK_UNTIL = '_lock_until' |
const | GLUE = '|||||' |
const | STRING_PREFIX = 'string' |
const | ARRAY_PREFIX = 'array' |
const | INT_PREFIX = 'int' |
const | BOOL_PREFIX = 'bool' |
const | NULL_PREFIX = 'null' |
const | TRUE = 'true' |
const | FALSE = 'false' |
Factory | $data_factory |
$null_trafo | |
string | $prefix_pattern |
Definition at line 32 of file ActiveContainer.php.
ILIAS\Cache\Container\ActiveContainer::__construct | ( | private Request | $request, |
private Adaptor | $adaptor, | ||
private Config | $config | ||
) |
Definition at line 75 of file ActiveContainer.php.
References null.
|
protected |
Definition at line 177 of file ActiveContainer.php.
References ILIAS\Cache\Container\ActiveContainer\getNullFallback().
Referenced by ILIAS\Cache\Container\ActiveContainer\get().
ILIAS\Cache\Container\ActiveContainer::delete | ( | string | $key | ) |
Deletes the value for the given key.
Implements ILIAS\Cache\Container\Container.
Definition at line 245 of file ActiveContainer.php.
References ILIAS\Cache\Container\ActiveContainer\isLocked().
ILIAS\Cache\Container\ActiveContainer::flush | ( | ) |
Deletes all values in the container.
Implements ILIAS\Cache\Container\Container.
Definition at line 253 of file ActiveContainer.php.
ILIAS\Cache\Container\ActiveContainer::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 218 of file ActiveContainer.php.
References ILIAS\Cache\Container\ActiveContainer\buildFinalTransformation(), ILIAS\Cache\Container\ActiveContainer\isLocked(), null, and ILIAS\Cache\Container\ActiveContainer\unpack().
ILIAS\Cache\Container\ActiveContainer::getAdaptorName | ( | ) |
Returns the name of the adaptop used (such as apc, memcache, phpstatic)
Implements ILIAS\Cache\Container\Container.
Definition at line 258 of file ActiveContainer.php.
ILIAS\Cache\Container\ActiveContainer::getContainerName | ( | ) |
Returns the name of the container.
Implements ILIAS\Cache\Container\Container.
Definition at line 263 of file ActiveContainer.php.
|
protected |
Definition at line 186 of file ActiveContainer.php.
References ILIAS\Cache\Container\ActiveContainer\$null_trafo.
Referenced by ILIAS\Cache\Container\ActiveContainer\buildFinalTransformation().
ILIAS\Cache\Container\ActiveContainer::has | ( | string | $key | ) |
Returns true if the container contains a value for the given key.
Implements ILIAS\Cache\Container\Container.
Definition at line 209 of file ActiveContainer.php.
References ILIAS\Cache\Container\ActiveContainer\isLocked().
ILIAS\Cache\Container\ActiveContainer::isLocked | ( | ) |
Returns true if the container is locked.
Implements ILIAS\Cache\Container\Container.
Definition at line 191 of file ActiveContainer.php.
References null.
Referenced by ILIAS\Cache\Container\ActiveContainer\delete(), ILIAS\Cache\Container\ActiveContainer\get(), ILIAS\Cache\Container\ActiveContainer\has(), and ILIAS\Cache\Container\ActiveContainer\set().
ILIAS\Cache\Container\ActiveContainer::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 200 of file ActiveContainer.php.
|
private |
Definition at line 92 of file ActiveContainer.php.
References ILIAS\Cache\Container\ActiveContainer\packRecursive().
Referenced by ILIAS\Cache\Container\ActiveContainer\packRecursive(), and ILIAS\Cache\Container\ActiveContainer\set().
|
private |
Definition at line 117 of file ActiveContainer.php.
References ILIAS\Cache\Container\ActiveContainer\pack().
Referenced by ILIAS\Cache\Container\ActiveContainer\pack().
ILIAS\Cache\Container\ActiveContainer::set | ( | string | $key, |
string|int|array|bool|null | $value, | ||
?int | $ttl = null |
||
) |
Sets the value for the given key.
Implements ILIAS\Cache\Container\Container.
Definition at line 230 of file ActiveContainer.php.
References ILIAS\Cache\Container\ActiveContainer\isLocked(), and ILIAS\Cache\Container\ActiveContainer\pack().
|
private |
Definition at line 135 of file ActiveContainer.php.
References null, ILIAS\Cache\Container\ActiveContainer\unpackRecursive(), and ILIAS\Cache\Container\ActiveContainer\unprefix().
Referenced by ILIAS\Cache\Container\ActiveContainer\get(), and ILIAS\Cache\Container\ActiveContainer\unpackRecursive().
|
private |
Definition at line 169 of file ActiveContainer.php.
References ILIAS\Cache\Container\ActiveContainer\unpack().
Referenced by ILIAS\Cache\Container\ActiveContainer\unpack().
|
private |
Definition at line 125 of file ActiveContainer.php.
References null.
Referenced by ILIAS\Cache\Container\ActiveContainer\unpack().
|
private |
Definition at line 71 of file ActiveContainer.php.
|
private |
Definition at line 72 of file ActiveContainer.php.
Referenced by ILIAS\Cache\Container\ActiveContainer\getNullFallback().
|
private |
Definition at line 73 of file ActiveContainer.php.
|
private |
Definition at line 49 of file ActiveContainer.php.
|
private |
Definition at line 57 of file ActiveContainer.php.
|
private |
Definition at line 69 of file ActiveContainer.php.
|
private |
Definition at line 41 of file ActiveContainer.php.
|
private |
Definition at line 53 of file ActiveContainer.php.
|
private |
Definition at line 37 of file ActiveContainer.php.
|
private |
Definition at line 61 of file ActiveContainer.php.
|
private |
Definition at line 45 of file ActiveContainer.php.
|
private |
Definition at line 65 of file ActiveContainer.php.