ILIAS
Release_5_0_x_branch Revision 61816
|
Class ilGlobalCacheService. More...
Public Member Functions | |
__construct ($service_id, $component) | |
__destruct () | |
unserialize ($serialized_value) | |
get ($key) | |
set ($key, $serialized_value, $ttl=NULL) | |
serialize ($value) | |
getServiceId () | |
setServiceId ($service_id) | |
setValid ($key) | |
getComponent () | |
setComponent ($component) | |
setInvalid ($key=NULL) | |
isValid ($key) | |
isActive () | |
isInstallable () | |
returnKey ($key) | |
getInfo () | |
getInstallationFailureReason () | |
exists ($key) | |
delete ($key) | |
flush () | |
setServiceType ($service_type) | |
getServiceType () |
Protected Member Functions | |
saveValid () | |
readValid () | |
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.
Definition at line 9 of file class.ilGlobalCacheService.php.
ilGlobalCacheService::__construct | ( | $service_id, | |
$component | |||
) |
$service_id | |
$component |
Reimplemented in ilShm, and ilMemcache.
Definition at line 49 of file class.ilGlobalCacheService.php.
References $component, $service_id, checkMemory(), getActive(), getInstallable(), readValid(), setComponent(), and setServiceId().
ilGlobalCacheService::__destruct | ( | ) |
Definition at line 59 of file class.ilGlobalCacheService.php.
References saveValid().
|
protected |
Definition at line 272 of file class.ilGlobalCacheService.php.
References getMemoryLimit(), and getMinMemory().
Referenced by __construct(), and getInstallationFailureReason().
|
abstract |
|
abstract |
|
abstract |
Reimplemented in ilShm, ilMemcache, ilStaticCache, ilApc, and ilXcache.
|
abstract |
$key |
Reimplemented in ilShm, ilMemcache, ilStaticCache, ilApc, and ilXcache.
|
abstractprotected |
Reimplemented in ilApc, ilMemcache, ilXcache, ilShm, and ilStaticCache.
Referenced by __construct().
ilGlobalCacheService::getComponent | ( | ) |
Definition at line 167 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 ilMemcache, ilXcache, and ilApc.
Definition at line 233 of file class.ilGlobalCacheService.php.
|
abstractprotected |
Reimplemented in ilApc, ilMemcache, ilXcache, ilShm, and ilStaticCache.
Referenced by __construct(), and getInstallationFailureReason().
ilGlobalCacheService::getInstallationFailureReason | ( | ) |
Reimplemented in ilMemcache.
Definition at line 241 of file class.ilGlobalCacheService.php.
References checkMemory(), getInstallable(), and getMinMemory().
|
protected |
Reimplemented in ilApc, and ilXcache.
Definition at line 256 of file class.ilGlobalCacheService.php.
Referenced by checkMemory().
|
protected |
Reimplemented in ilApc, and ilXcache.
Definition at line 264 of file class.ilGlobalCacheService.php.
Referenced by checkMemory(), and getInstallationFailureReason().
ilGlobalCacheService::getServiceId | ( | ) |
Definition at line 140 of file class.ilGlobalCacheService.php.
References $service_id.
Referenced by ilApc\getInfo(), and returnKey().
ilGlobalCacheService::getServiceType | ( | ) |
ilGlobalCacheService::isActive | ( | ) |
Definition at line 205 of file class.ilGlobalCacheService.php.
Referenced by ilXcache\getInfo(), readValid(), and saveValid().
ilGlobalCacheService::isInstallable | ( | ) |
Definition at line 213 of file class.ilGlobalCacheService.php.
ilGlobalCacheService::isValid | ( | $key | ) |
$key |
Definition at line 197 of file class.ilGlobalCacheService.php.
|
protected |
set self::$valid_keys from GlobalCache
Definition at line 83 of file class.ilGlobalCacheService.php.
References isActive(), serialize(), and unserialize().
Referenced by __construct().
ilGlobalCacheService::returnKey | ( | $key | ) |
$key |
Definition at line 223 of file class.ilGlobalCacheService.php.
References getComponent(), and getServiceId().
Referenced by ilXcache\delete(), ilApc\delete(), ilMemcache\delete(), ilXcache\exists(), ilApc\exists(), ilMemcache\exists(), ilXcache\get(), ilApc\get(), ilMemcache\get(), ilXcache\set(), ilApc\set(), and ilMemcache\set().
|
protected |
save self::$valid_keys to GlobalCache
Definition at line 69 of file class.ilGlobalCacheService.php.
References isActive(), and serialize().
Referenced by __destruct().
|
abstract |
$value |
Reimplemented in ilMemcache, ilShm, ilStaticCache, ilApc, and ilXcache.
Referenced by readValid(), and saveValid().
|
abstract |
$key | ||
$serialized_value | ||
null | $ttl |
Reimplemented in ilShm, ilMemcache, ilStaticCache, ilApc, and ilXcache.
ilGlobalCacheService::setComponent | ( | $component | ) |
string | $component |
Definition at line 175 of file class.ilGlobalCacheService.php.
References $component.
Referenced by __construct().
ilGlobalCacheService::setInvalid | ( | $key = NULL | ) |
null | $key |
Definition at line 183 of file class.ilGlobalCacheService.php.
ilGlobalCacheService::setServiceId | ( | $service_id | ) |
string | $service_id |
Definition at line 148 of file class.ilGlobalCacheService.php.
References $service_id.
Referenced by __construct().
ilGlobalCacheService::setServiceType | ( | $service_type | ) |
int | $service_type |
Definition at line 317 of file class.ilGlobalCacheService.php.
References $service_type.
ilGlobalCacheService::setValid | ( | $key | ) |
$key |
Definition at line 158 of file class.ilGlobalCacheService.php.
|
abstract |
$serialized_value |
Reimplemented in ilMemcache, ilShm, ilStaticCache, ilApc, and ilXcache.
Referenced by readValid().
|
staticprotected |
Definition at line 22 of file class.ilGlobalCacheService.php.
Referenced by ilXcache\getActive().
|
protected |
Definition at line 34 of file class.ilGlobalCacheService.php.
Referenced by ilMemcache\__construct(), ilShm\__construct(), __construct(), getComponent(), and setComponent().
|
protected |
Definition at line 14 of file class.ilGlobalCacheService.php.
|
staticprotected |
Definition at line 26 of file class.ilGlobalCacheService.php.
|
protected |
Definition at line 30 of file class.ilGlobalCacheService.php.
Referenced by ilMemcache\__construct(), ilShm\__construct(), __construct(), getServiceId(), and setServiceId().
|
protected |
Definition at line 38 of file class.ilGlobalCacheService.php.
Referenced by getServiceType(), and setServiceType().
|
protected |
Definition at line 42 of file class.ilGlobalCacheService.php.
|
protected |
Definition at line 18 of file class.ilGlobalCacheService.php.