|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Inheritance diagram for ILIAS\Cache\Container\ActiveContainer:
Collaboration diagram for ILIAS\Cache\Container\ActiveContainer: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... | |
| unlock () | |
| 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, 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' |
| ILIAS Data Factory | $data_factory |
| Transformation | $null_trafo |
| string | $prefix_pattern |
| float | $lock_cache = null |
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 77 of file ActiveContainer.php.
|
protected |
Definition at line 179 of file ActiveContainer.php.
References ILIAS\Cache\Container\ActiveContainer\getNullFallback().
Referenced by ILIAS\Cache\Container\ActiveContainer\get().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\Cache\Container\ActiveContainer::delete | ( | string | $key | ) |
Deletes the value for the given key.
Implements ILIAS\Cache\Container\Container.
Definition at line 262 of file ActiveContainer.php.
References ILIAS\Cache\Container\ActiveContainer\isLocked().
Here is the call graph for this function:| ILIAS\Cache\Container\ActiveContainer::flush | ( | ) |
Deletes all values in the container.
Implements ILIAS\Cache\Container\Container.
Definition at line 270 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 231 of file ActiveContainer.php.
References ILIAS\Cache\Container\ActiveContainer\buildFinalTransformation(), ILIAS\Cache\Container\ActiveContainer\has(), ILIAS\Cache\Container\ActiveContainer\isLocked(), and ILIAS\Cache\Container\ActiveContainer\unpack().
Here is the call graph for this function:| 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 275 of file ActiveContainer.php.
| ILIAS\Cache\Container\ActiveContainer::getContainerName | ( | ) |
Returns the name of the container.
Implements ILIAS\Cache\Container\Container.
Definition at line 280 of file ActiveContainer.php.
|
protected |
Definition at line 188 of file ActiveContainer.php.
References ILIAS\Cache\Container\ActiveContainer\$null_trafo.
Referenced by ILIAS\Cache\Container\ActiveContainer\buildFinalTransformation().
Here is the caller graph for this function:| 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 222 of file ActiveContainer.php.
References ILIAS\Cache\Container\ActiveContainer\isLocked().
Referenced by ILIAS\Cache\Container\ActiveContainer\get().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\Cache\Container\ActiveContainer::isLocked | ( | ) |
Returns true if the container is locked.
Implements ILIAS\Cache\Container\Container.
Definition at line 193 of file ActiveContainer.php.
Referenced by ILIAS\Cache\Container\ActiveContainer\delete(), ILIAS\Cache\Container\ActiveContainer\get(), ILIAS\Cache\Container\ActiveContainer\has(), and ILIAS\Cache\Container\ActiveContainer\set().
Here is the caller graph for this function:| 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.
InvalidArgumentException if $seconds is greater than 300 or less than 0
Implements ILIAS\Cache\Container\Container.
Definition at line 213 of file ActiveContainer.php.
References ILIAS\Cache\Container\ActiveContainer\LOCK_UNTIL.
|
private |
Definition at line 94 of file ActiveContainer.php.
References ILIAS\Cache\Container\ActiveContainer\FALSE, ILIAS\Cache\Container\ActiveContainer\GLUE, ILIAS\Cache\Container\ActiveContainer\packRecursive(), and ILIAS\Cache\Container\ActiveContainer\TRUE.
Referenced by ILIAS\Cache\Container\ActiveContainer\packRecursive(), and ILIAS\Cache\Container\ActiveContainer\set().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 119 of file ActiveContainer.php.
References ILIAS\Cache\Container\ActiveContainer\pack(), and ILIAS\Cache\Container\ActiveContainer\packRecursive().
Referenced by ILIAS\Cache\Container\ActiveContainer\pack(), and ILIAS\Cache\Container\ActiveContainer\packRecursive().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 247 of file ActiveContainer.php.
References ILIAS\Cache\Container\ActiveContainer\isLocked(), and ILIAS\Cache\Container\ActiveContainer\pack().
Here is the call graph for this function:| ILIAS\Cache\Container\ActiveContainer::unlock | ( | ) |
Definition at line 288 of file ActiveContainer.php.
|
private |
Definition at line 137 of file ActiveContainer.php.
References ILIAS\Cache\Container\ActiveContainer\ARRAY_PREFIX, ILIAS\Cache\Container\ActiveContainer\BOOL_PREFIX, ILIAS\Cache\Container\ActiveContainer\INT_PREFIX, ILIAS\Cache\Container\ActiveContainer\STRING_PREFIX, ILIAS\Cache\Container\ActiveContainer\TRUE, ILIAS\Cache\Container\ActiveContainer\unpackRecursive(), and ILIAS\Cache\Container\ActiveContainer\unprefix().
Referenced by ILIAS\Cache\Container\ActiveContainer\get(), and ILIAS\Cache\Container\ActiveContainer\unpackRecursive().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 171 of file ActiveContainer.php.
References ILIAS\Cache\Container\ActiveContainer\unpack(), and ILIAS\Cache\Container\ActiveContainer\unpackRecursive().
Referenced by ILIAS\Cache\Container\ActiveContainer\unpack(), and ILIAS\Cache\Container\ActiveContainer\unpackRecursive().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 127 of file ActiveContainer.php.
References ILIAS\Cache\Container\ActiveContainer\NULL_PREFIX.
Referenced by ILIAS\Cache\Container\ActiveContainer\unpack().
Here is the caller graph for this function:Definition at line 71 of file ActiveContainer.php.
|
private |
Definition at line 75 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.
Referenced by ILIAS\Cache\Container\ActiveContainer\unpack().
|
private |
Definition at line 57 of file ActiveContainer.php.
Referenced by ILIAS\Cache\Container\ActiveContainer\unpack().
|
private |
Definition at line 69 of file ActiveContainer.php.
Referenced by ILIAS\Cache\Container\ActiveContainer\pack().
|
private |
Definition at line 41 of file ActiveContainer.php.
Referenced by ILIAS\Cache\Container\ActiveContainer\pack().
|
private |
Definition at line 53 of file ActiveContainer.php.
Referenced by ILIAS\Cache\Container\ActiveContainer\unpack().
|
private |
Definition at line 37 of file ActiveContainer.php.
Referenced by ILIAS\Cache\Container\ActiveContainer\lock().
|
private |
Definition at line 61 of file ActiveContainer.php.
Referenced by ILIAS\Cache\Container\ActiveContainer\unprefix().
|
private |
Definition at line 45 of file ActiveContainer.php.
Referenced by ILIAS\Cache\Container\ActiveContainer\unpack().
|
private |
Definition at line 65 of file ActiveContainer.php.
Referenced by ILIAS\Cache\Container\ActiveContainer\pack(), and ILIAS\Cache\Container\ActiveContainer\unpack().