ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilGlobalCacheService. More...
Public Member Functions | |
__construct ($service_id, $component) | |
unserialize ($serialized_value) | |
get ($key) | |
set ($key, $serialized_value, $ttl=null) | |
serialize ($value) | |
getServiceId () | |
setServiceId ($service_id) | |
getComponent () | |
setComponent ($component) | |
isActive () | |
isInstallable () | |
returnKey ($key) | |
getInfo () | |
getInstallationFailureReason () | |
exists ($key) | |
delete ($key) | |
flush () | |
setServiceType ($service_type) | |
getServiceType () | |
setValid ($key) | |
Declare a key as valid. More... | |
setInvalid ($key=null) | |
Set the key as invalid. More... | |
isValid ($key) | |
Checks whether the cache key is valid or not. More... | |
Protected Member Functions | |
getActive () | |
getInstallable () | |
getMemoryLimit () | |
getMinMemory () | |
checkMemory () | |
Protected Attributes | |
$current_time = 0 | |
$valid_keys = array() | |
$service_id = '' | |
$component = '' | |
$service_type = ilGlobalCache::TYPE_STATIC | |
$valid_key_hash = '' | |
Static Protected Attributes | |
static | $active = array() |
static | $installable = array() |
Class ilGlobalCacheService.
Base class for all concrete cache implementations.
Definition at line 11 of file class.ilGlobalCacheService.php.
ilGlobalCacheService::__construct | ( | $service_id, | |
$component | |||
) |
$service_id | |
$component |
Reimplemented in ilShm, and ilXcache.
Definition at line 52 of file class.ilGlobalCacheService.php.
References $component, $service_id, checkMemory(), getActive(), getInstallable(), setComponent(), and setServiceId().
|
protected |
Definition at line 218 of file class.ilGlobalCacheService.php.
References getMemoryLimit(), and getMinMemory().
Referenced by __construct(), and getInstallationFailureReason().
|
abstract |
|
abstract |
|
abstract |
Reimplemented in ilApc, ilMemcache, ilShm, ilStaticCache, and ilXcache.
|
abstract |
$key |
Reimplemented in ilApc, ilMemcache, ilShm, ilStaticCache, and ilXcache.
|
abstractprotected |
Reimplemented in ilApc, ilMemcache, ilShm, ilStaticCache, and ilXcache.
Referenced by __construct().
ilGlobalCacheService::getComponent | ( | ) |
Definition at line 128 of file class.ilGlobalCacheService.php.
References $component.
Referenced by ilStaticCache\delete(), ilStaticCache\exists(), ilStaticCache\get(), ilApc\getInfo(), returnKey(), and ilStaticCache\set().
ilGlobalCacheService::getInfo | ( | ) |
Reimplemented in ilApc, ilMemcache, and ilXcache.
Definition at line 175 of file class.ilGlobalCacheService.php.
|
abstractprotected |
Reimplemented in ilApc, ilMemcache, ilShm, ilStaticCache, and ilXcache.
Referenced by __construct(), and getInstallationFailureReason().
ilGlobalCacheService::getInstallationFailureReason | ( | ) |
Reimplemented in ilMemcache.
Definition at line 184 of file class.ilGlobalCacheService.php.
References checkMemory(), getInstallable(), and getMinMemory().
|
protected |
Reimplemented in ilApc, and ilXcache.
Definition at line 200 of file class.ilGlobalCacheService.php.
Referenced by checkMemory().
|
protected |
Reimplemented in ilApc, and ilXcache.
Definition at line 209 of file class.ilGlobalCacheService.php.
Referenced by checkMemory(), and getInstallationFailureReason().
ilGlobalCacheService::getServiceId | ( | ) |
Definition at line 110 of file class.ilGlobalCacheService.php.
References $service_id.
Referenced by ilApc\getInfo(), and returnKey().
ilGlobalCacheService::getServiceType | ( | ) |
Definition at line 273 of file class.ilGlobalCacheService.php.
References $service_type.
ilGlobalCacheService::isActive | ( | ) |
Definition at line 146 of file class.ilGlobalCacheService.php.
Referenced by ilXcache\getInfo(), ilXcache\readValid(), and ilXcache\saveValid().
ilGlobalCacheService::isInstallable | ( | ) |
Definition at line 155 of file class.ilGlobalCacheService.php.
Referenced by ilXcache\readValid().
ilGlobalCacheService::isValid | ( | $key | ) |
Checks whether the cache key is valid or not.
This method exists only for legacy reasons and has only a real function in combination with XCache.
string | $key | The key which should be checked. |
Reimplemented in ilApc, and ilMemcache.
Definition at line 325 of file class.ilGlobalCacheService.php.
References $key.
ilGlobalCacheService::returnKey | ( | $key | ) |
$key |
Definition at line 166 of file class.ilGlobalCacheService.php.
References $key, getComponent(), and getServiceId().
Referenced by ilApc\delete(), ilMemcache\delete(), ilXcache\delete(), ilApc\exists(), ilMemcache\exists(), ilXcache\exists(), ilApc\get(), ilMemcache\get(), ilXcache\get(), ilApc\set(), ilMemcache\set(), and ilXcache\set().
|
abstract |
$value |
Reimplemented in ilApc, ilMemcache, ilShm, ilStaticCache, and ilXcache.
|
abstract |
$key | ||
$serialized_value | ||
null | $ttl |
Reimplemented in ilApc, ilMemcache, ilShm, ilStaticCache, and ilXcache.
ilGlobalCacheService::setComponent | ( | $component | ) |
string | $component |
Definition at line 137 of file class.ilGlobalCacheService.php.
References $component.
Referenced by __construct().
ilGlobalCacheService::setInvalid | ( | $key = null | ) |
Set the key as invalid.
This method will invalidate all keys if no argument is given or null.
This method exists only for legacy reasons and has only a real function in combination with XCache.
string | $key | The key which should be invalidated or null to invalidate all. |
Definition at line 305 of file class.ilGlobalCacheService.php.
References $key.
ilGlobalCacheService::setServiceId | ( | $service_id | ) |
string | $service_id |
Definition at line 119 of file class.ilGlobalCacheService.php.
References $service_id.
Referenced by __construct().
ilGlobalCacheService::setServiceType | ( | $service_type | ) |
int | $service_type |
Definition at line 264 of file class.ilGlobalCacheService.php.
References $service_type.
ilGlobalCacheService::setValid | ( | $key | ) |
Declare a key as valid.
If the key is already known no action is taken.
This method exists only for legacy reasons and has only a real function in combination with XCache.
string | $key | The key which should be declared as valid. |
Definition at line 289 of file class.ilGlobalCacheService.php.
References $key.
|
abstract |
$serialized_value |
Reimplemented in ilApc, ilMemcache, ilShm, ilStaticCache, and ilXcache.
|
staticprotected |
Definition at line 25 of file class.ilGlobalCacheService.php.
Referenced by ilXcache\getActive().
|
protected |
Definition at line 37 of file class.ilGlobalCacheService.php.
Referenced by __construct(), ilShm\__construct(), ilXcache\__construct(), getComponent(), and setComponent().
|
protected |
Definition at line 17 of file class.ilGlobalCacheService.php.
|
staticprotected |
Definition at line 29 of file class.ilGlobalCacheService.php.
|
protected |
Definition at line 33 of file class.ilGlobalCacheService.php.
Referenced by __construct(), ilShm\__construct(), getServiceId(), and setServiceId().
|
protected |
Definition at line 41 of file class.ilGlobalCacheService.php.
Referenced by getServiceType(), and setServiceType().
|
protected |
Definition at line 45 of file class.ilGlobalCacheService.php.
|
protected |
Definition at line 21 of file class.ilGlobalCacheService.php.