ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilMemcache. More...
Public Member Functions | ||||
exists ($key) | ||||
set ($key, $serialized_value, $ttl=null) | ||||
get ($key) | ||||
delete ($key) | ||||
flush () | ||||
getInstallationFailureReason () | ||||
serialize ($value) | ||||
unserialize ($serialized_value) | ||||
getInfo () | ||||
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.
| ||||
![]() | ||||
__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 | |
getMemcacheObject () | |
getActive () | |
getInstallable () | |
![]() | |
getActive () | |
getInstallable () | |
getMemoryLimit () | |
getMinMemory () | |
checkMemory () | |
Static Protected Attributes | |
static | $memcache_object |
![]() | |
static | $active = array() |
static | $installable = array() |
Additional Inherited Members | |
![]() | |
$current_time = 0 | |
$valid_keys = array() | |
$service_id = '' | |
$component = '' | |
$service_type = ilGlobalCache::TYPE_STATIC | |
$valid_key_hash = '' | |
ilMemcache::delete | ( | $key | ) |
$key |
Reimplemented from ilGlobalCacheService.
Definition at line 92 of file class.ilMemcache.php.
References getMemcacheObject(), and ilGlobalCacheService\returnKey().
ilMemcache::exists | ( | $key | ) |
$key |
Reimplemented from ilGlobalCacheService.
Definition at line 60 of file class.ilMemcache.php.
References getMemcacheObject(), and ilGlobalCacheService\returnKey().
ilMemcache::flush | ( | ) |
Reimplemented from ilGlobalCacheService.
Definition at line 100 of file class.ilMemcache.php.
References getMemcacheObject().
ilMemcache::get | ( | $key | ) |
$key |
Reimplemented from ilGlobalCacheService.
Definition at line 82 of file class.ilMemcache.php.
References getMemcacheObject(), and ilGlobalCacheService\returnKey().
|
protected |
Reimplemented from ilGlobalCacheService.
Definition at line 108 of file class.ilMemcache.php.
References $server, getInstallable(), and getMemcacheObject().
ilMemcache::getInfo | ( | ) |
Reimplemented from ilGlobalCacheService.
Definition at line 176 of file class.ilMemcache.php.
References getMemcacheObject().
|
protected |
Reimplemented from ilGlobalCacheService.
Definition at line 132 of file class.ilMemcache.php.
Referenced by getActive().
ilMemcache::getInstallationFailureReason | ( | ) |
Reimplemented from ilGlobalCacheService.
Definition at line 140 of file class.ilMemcache.php.
References getMemcacheObject().
|
protected |
Definition at line 50 of file class.ilMemcache.php.
References $memcache_object.
Referenced by delete(), exists(), flush(), get(), getActive(), getInfo(), getInstallationFailureReason(), and set().
ilMemcache::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 from ilGlobalCacheService.
Definition at line 192 of file class.ilMemcache.php.
ilMemcache::serialize | ( | $value | ) |
$value |
Reimplemented from ilGlobalCacheService.
Definition at line 158 of file class.ilMemcache.php.
References serialize().
Referenced by serialize().
ilMemcache::set | ( | $key, | |
$serialized_value, | |||
$ttl = null |
|||
) |
$key | ||
$serialized_value | ||
null | int | $ttl |
Reimplemented from ilGlobalCacheService.
Definition at line 72 of file class.ilMemcache.php.
References getMemcacheObject(), and ilGlobalCacheService\returnKey().
ilMemcache::unserialize | ( | $serialized_value | ) |
$serialized_value |
Reimplemented from ilGlobalCacheService.
Definition at line 168 of file class.ilMemcache.php.
References unserialize().
Referenced by unserialize().
|
staticprotected |
Definition at line 17 of file class.ilMemcache.php.
Referenced by getMemcacheObject().