ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct ($serviceId, $component) | |
ilXcache constructor. More... | |
exists ($key) | |
set ($key, $serialized_value, $ttl=null) | |
get ($key) | |
delete ($key) | |
flush () | |
serialize ($value) | |
unserialize ($serialized_value) | |
getInfo () | |
__destruct () | |
Public Member Functions inherited from ilGlobalCacheService | |
__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... | |
Data Fields | |
const | MIN_MEMORY = 32 |
Protected Member Functions | |
getActive () | |
getInstallable () | |
getMemoryLimit () | |
getMinMemory () | |
saveValid () | |
readValid () | |
Protected Member Functions inherited from ilGlobalCacheService | |
getActive () | |
getInstallable () | |
getMemoryLimit () | |
getMinMemory () | |
checkMemory () | |
Additional Inherited Members | |
Protected Attributes inherited from ilGlobalCacheService | |
$current_time = 0 | |
$valid_keys = array() | |
$service_id = '' | |
$component = '' | |
$service_type = ilGlobalCache::TYPE_STATIC | |
$valid_key_hash = '' | |
Static Protected Attributes inherited from ilGlobalCacheService | |
static | $active = array() |
static | $installable = array() |
Class ilXcache.
Concrete XCache implementation.
Definition at line 12 of file class.ilXcache.php.
ilXcache::__construct | ( | $serviceId, | |
$component | |||
) |
ilXcache constructor.
$serviceId | |
$component |
Definition at line 23 of file class.ilXcache.php.
References ilGlobalCacheService\$component, and readValid().
ilXcache::__destruct | ( | ) |
Definition at line 193 of file class.ilXcache.php.
References saveValid().
ilXcache::delete | ( | $key | ) |
$key |
Definition at line 70 of file class.ilXcache.php.
References $key, and ilGlobalCacheService\returnKey().
ilXcache::exists | ( | $key | ) |
$key |
Definition at line 35 of file class.ilXcache.php.
References $key, and ilGlobalCacheService\returnKey().
ilXcache::flush | ( | ) |
Definition at line 79 of file class.ilXcache.php.
References $_SERVER.
ilXcache::get | ( | $key | ) |
$key |
Definition at line 59 of file class.ilXcache.php.
References $key, and ilGlobalCacheService\returnKey().
|
protected |
Definition at line 115 of file class.ilXcache.php.
References ilGlobalCacheService\$active.
ilXcache::getInfo | ( | ) |
Definition at line 140 of file class.ilXcache.php.
References ilGlobalCacheService\isActive().
|
protected |
Definition at line 131 of file class.ilXcache.php.
|
protected |
Definition at line 151 of file class.ilXcache.php.
|
protected |
Definition at line 160 of file class.ilXcache.php.
|
protected |
set self::$valid_keys from GlobalCache
Definition at line 185 of file class.ilXcache.php.
References ilGlobalCacheService\isActive(), ilGlobalCacheService\isInstallable(), serialize(), and unserialize().
Referenced by __construct().
|
protected |
save self::$valid_keys to GlobalCache
Definition at line 170 of file class.ilXcache.php.
References ilGlobalCacheService\isActive(), and serialize().
Referenced by __destruct().
ilXcache::serialize | ( | $value | ) |
$value |
Definition at line 95 of file class.ilXcache.php.
Referenced by readValid(), and saveValid().
ilXcache::set | ( | $key, | |
$serialized_value, | |||
$ttl = null |
|||
) |
$key | ||
$serialized_value | ||
null | $ttl |
Definition at line 48 of file class.ilXcache.php.
References $key, and ilGlobalCacheService\returnKey().
ilXcache::unserialize | ( | $serialized_value | ) |
$serialized_value |
Definition at line 106 of file class.ilXcache.php.
Referenced by readValid().
const ilXcache::MIN_MEMORY = 32 |
Definition at line 14 of file class.ilXcache.php.