ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (string $service_id, string $component) | |
ilGlobalCacheService constructor. More... | |
unserialize ($serialized_value) | |
get (string $key) | |
set (string $key, $serialized_value, int $ttl=null) | |
serialize ($value) | |
getServiceId () | |
setServiceId (string $service_id) | |
getComponent () | |
setComponent (string $component) | |
isActive () | |
isInstallable () | |
returnKey (string $key) | |
getInfo () | |
getInstallationFailureReason () | |
exists (string $key) | |
delete (string $key) | |
flush (bool $complete=false) | |
setServiceType (int $service_type) | |
getServiceType () | |
setValid (string $key) | |
Declare a key as valid. More... | |
isValid (string $key) | |
Checks whether the cache key is valid or not. More... | |
Protected Member Functions | |
getActive () | |
getInstallable () | |
getMemoryLimit () | |
getMinMemory () | |
checkMemory () | |
Protected Attributes | |
int | $current_time = 0 |
array | $valid_keys = array() |
string | $service_id = '' |
string | $component = '' |
int | $service_type = ilGlobalCache::TYPE_STATIC |
string | $valid_key_hash = '' |
Static Protected Attributes | |
static array | $active = array() |
static array | $installable = array() |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilGlobalCacheService Base class for all concrete cache implementations.
Definition at line 25 of file class.ilGlobalCacheService.php.
ilGlobalCacheService::__construct | ( | string | $service_id, |
string | $component | ||
) |
ilGlobalCacheService constructor.
Definition at line 39 of file class.ilGlobalCacheService.php.
References ILIAS\LTI\ToolProvider\$key, checkMemory(), getActive(), getInstallable(), serialize(), setComponent(), setServiceId(), and unserialize().
|
protected |
Definition at line 135 of file class.ilGlobalCacheService.php.
References ILIAS\LTI\ToolProvider\$key, exists(), flush(), getMemoryLimit(), and getMinMemory().
Referenced by __construct(), and getInstallationFailureReason().
|
abstract |
Implements ilGlobalCacheServiceInterface.
|
abstract |
Implements ilGlobalCacheServiceInterface.
Referenced by checkMemory().
|
abstract |
Implements ilGlobalCacheServiceInterface.
Referenced by checkMemory().
|
abstract |
Implements ilGlobalCacheServiceInterface.
|
abstractprotected |
ilGlobalCacheService::getComponent | ( | ) |
Implements ilGlobalCacheServiceInterface.
Definition at line 83 of file class.ilGlobalCacheService.php.
References $component.
Referenced by ilStaticCache\delete(), ilStaticCache\exists(), ilStaticCache\flush(), ilStaticCache\get(), ilApc\getInfo(), returnKey(), and ilStaticCache\set().
ilGlobalCacheService::getInfo | ( | ) |
Implements ilGlobalCacheServiceInterface.
Definition at line 108 of file class.ilGlobalCacheService.php.
|
abstractprotected |
Referenced by __construct(), and getInstallationFailureReason().
ilGlobalCacheService::getInstallationFailureReason | ( | ) |
Implements ilGlobalCacheServiceInterface.
Definition at line 113 of file class.ilGlobalCacheService.php.
References checkMemory(), getInstallable(), and getMinMemory().
|
protected |
Definition at line 125 of file class.ilGlobalCacheService.php.
Referenced by checkMemory().
|
protected |
Definition at line 130 of file class.ilGlobalCacheService.php.
Referenced by checkMemory(), and getInstallationFailureReason().
ilGlobalCacheService::getServiceId | ( | ) |
Implements ilGlobalCacheServiceInterface.
Definition at line 73 of file class.ilGlobalCacheService.php.
References $service_id.
Referenced by ilApc\getInfo(), and returnKey().
ilGlobalCacheService::getServiceType | ( | ) |
Implements ilGlobalCacheServiceInterface.
Definition at line 163 of file class.ilGlobalCacheService.php.
References $service_type.
ilGlobalCacheService::isActive | ( | ) |
Implements ilGlobalCacheServiceInterface.
Definition at line 93 of file class.ilGlobalCacheService.php.
ilGlobalCacheService::isInstallable | ( | ) |
Implements ilGlobalCacheServiceInterface.
Definition at line 98 of file class.ilGlobalCacheService.php.
Referenced by ilMemcache\getInfo().
ilGlobalCacheService::isValid | ( | string | $key | ) |
Checks whether the cache key is valid or not.
Implements ilGlobalCacheServiceInterface.
Definition at line 173 of file class.ilGlobalCacheService.php.
ilGlobalCacheService::returnKey | ( | string | $key | ) |
Implements ilGlobalCacheServiceInterface.
Definition at line 103 of file class.ilGlobalCacheService.php.
References ILIAS\LTI\ToolProvider\$key, getComponent(), and getServiceId().
Referenced by ilApc\delete(), ilMemcache\delete(), ilApc\exists(), ilMemcache\exists(), ilApc\get(), ilMemcache\get(), ilApc\set(), and ilMemcache\set().
|
abstract |
mixed | $value |
Referenced by __construct().
|
abstract |
mixed | $serialized_value |
Implements ilGlobalCacheServiceInterface.
ilGlobalCacheService::setComponent | ( | string | $component | ) |
Implements ilGlobalCacheServiceInterface.
Definition at line 88 of file class.ilGlobalCacheService.php.
References $component.
Referenced by __construct().
ilGlobalCacheService::setServiceId | ( | string | $service_id | ) |
Implements ilGlobalCacheServiceInterface.
Definition at line 78 of file class.ilGlobalCacheService.php.
References $service_id.
Referenced by __construct().
ilGlobalCacheService::setServiceType | ( | int | $service_type | ) |
Implements ilGlobalCacheServiceInterface.
Definition at line 158 of file class.ilGlobalCacheService.php.
References $service_type.
ilGlobalCacheService::setValid | ( | string | $key | ) |
Declare a key as valid.
If the key is already known no action is taken.
Implements ilGlobalCacheServiceInterface.
Definition at line 168 of file class.ilGlobalCacheService.php.
References ILIAS\LTI\ToolProvider\$key.
|
abstract |
mixed | $serialized_value |
Implements ilGlobalCacheServiceInterface.
Referenced by __construct().
|
staticprotected |
Definition at line 29 of file class.ilGlobalCacheService.php.
|
protected |
Definition at line 32 of file class.ilGlobalCacheService.php.
Referenced by getComponent(), and setComponent().
|
protected |
Definition at line 27 of file class.ilGlobalCacheService.php.
|
staticprotected |
Definition at line 30 of file class.ilGlobalCacheService.php.
|
protected |
Definition at line 31 of file class.ilGlobalCacheService.php.
Referenced by getServiceId(), and setServiceId().
|
protected |
Definition at line 33 of file class.ilGlobalCacheService.php.
Referenced by getServiceType(), and setServiceType().
|
protected |
Definition at line 34 of file class.ilGlobalCacheService.php.
|
protected |
Definition at line 28 of file class.ilGlobalCacheService.php.