|
ILIAS
Release_5_0_x_branch Revision 61816
|
Class ilGlobalCacheService. More...
Inheritance diagram for ilGlobalCacheService:
Collaboration diagram for ilGlobalCacheService: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().
Here is the call graph for this function:| ilGlobalCacheService::__destruct | ( | ) |
Definition at line 59 of file class.ilGlobalCacheService.php.
References saveValid().
Here is the call graph for this function:
|
protected |
Definition at line 272 of file class.ilGlobalCacheService.php.
References getMemoryLimit(), and getMinMemory().
Referenced by __construct(), and getInstallationFailureReason().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| ilGlobalCacheService::getInstallationFailureReason | ( | ) |
Reimplemented in ilMemcache.
Definition at line 241 of file class.ilGlobalCacheService.php.
References checkMemory(), getInstallable(), and getMinMemory().
Here is the call graph for this function:
|
protected |
Reimplemented in ilApc, and ilXcache.
Definition at line 256 of file class.ilGlobalCacheService.php.
Referenced by checkMemory().
Here is the caller graph for this function:
|
protected |
Reimplemented in ilApc, and ilXcache.
Definition at line 264 of file class.ilGlobalCacheService.php.
Referenced by checkMemory(), and getInstallationFailureReason().
Here is the caller graph for this function:| ilGlobalCacheService::getServiceId | ( | ) |
Definition at line 140 of file class.ilGlobalCacheService.php.
References $service_id.
Referenced by ilApc\getInfo(), and returnKey().
Here is the caller graph for this function:| ilGlobalCacheService::getServiceType | ( | ) |
| ilGlobalCacheService::isActive | ( | ) |
Definition at line 205 of file class.ilGlobalCacheService.php.
Referenced by ilXcache\getInfo(), readValid(), and saveValid().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
save self::$valid_keys to GlobalCache
Definition at line 69 of file class.ilGlobalCacheService.php.
References isActive(), and serialize().
Referenced by __destruct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
abstract |
| $value |
Reimplemented in ilMemcache, ilShm, ilStaticCache, ilApc, and ilXcache.
Referenced by readValid(), and saveValid().
Here is the caller graph for this function:
|
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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:
|
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.