|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilGlobalCacheService. More...
Inheritance diagram for ilGlobalCacheService:
Collaboration diagram for ilGlobalCacheService: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 51 of file class.ilGlobalCacheService.php.
References $component, $service_id, checkMemory(), getActive(), getInstallable(), setComponent(), and setServiceId().
Here is the call graph for this function:
|
protected |
Definition at line 205 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 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().
Here is the caller graph for this function:| ilGlobalCacheService::getComponent | ( | ) |
Definition at line 124 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 ilApc, ilMemcache, and ilXcache.
Definition at line 166 of file class.ilGlobalCacheService.php.
|
abstractprotected |
Reimplemented in ilApc, ilMemcache, ilShm, ilStaticCache, and ilXcache.
Referenced by __construct(), and getInstallationFailureReason().
Here is the caller graph for this function:| ilGlobalCacheService::getInstallationFailureReason | ( | ) |
Reimplemented in ilMemcache.
Definition at line 174 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 189 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 197 of file class.ilGlobalCacheService.php.
Referenced by checkMemory(), and getInstallationFailureReason().
Here is the caller graph for this function:| ilGlobalCacheService::getServiceId | ( | ) |
Definition at line 108 of file class.ilGlobalCacheService.php.
References $service_id.
Referenced by ilApc\getInfo(), and returnKey().
Here is the caller graph for this function:| ilGlobalCacheService::getServiceType | ( | ) |
Definition at line 258 of file class.ilGlobalCacheService.php.
References $service_type.
| ilGlobalCacheService::isActive | ( | ) |
Definition at line 140 of file class.ilGlobalCacheService.php.
Referenced by ilXcache\getInfo(), ilXcache\readValid(), and ilXcache\saveValid().
Here is the caller graph for this function:| ilGlobalCacheService::isInstallable | ( | ) |
Definition at line 148 of file class.ilGlobalCacheService.php.
Referenced by ilXcache\readValid().
Here is the caller graph for this function:| 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 307 of file class.ilGlobalCacheService.php.
| ilGlobalCacheService::returnKey | ( | $key | ) |
| $key |
Definition at line 158 of file class.ilGlobalCacheService.php.
References 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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 132 of file class.ilGlobalCacheService.php.
References $component.
Referenced by __construct().
Here is the caller graph for this function:| 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 288 of file class.ilGlobalCacheService.php.
| ilGlobalCacheService::setServiceId | ( | $service_id | ) |
| string | $service_id |
Definition at line 116 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 250 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 273 of file class.ilGlobalCacheService.php.
|
abstract |
| $serialized_value |
Reimplemented in ilApc, ilMemcache, ilShm, ilStaticCache, and ilXcache.
|
staticprotected |
Definition at line 24 of file class.ilGlobalCacheService.php.
Referenced by ilXcache\getActive().
|
protected |
Definition at line 36 of file class.ilGlobalCacheService.php.
Referenced by __construct(), ilShm\__construct(), ilXcache\__construct(), getComponent(), and setComponent().
|
protected |
Definition at line 16 of file class.ilGlobalCacheService.php.
|
staticprotected |
Definition at line 28 of file class.ilGlobalCacheService.php.
|
protected |
Definition at line 32 of file class.ilGlobalCacheService.php.
Referenced by __construct(), ilShm\__construct(), getServiceId(), and setServiceId().
|
protected |
Definition at line 40 of file class.ilGlobalCacheService.php.
Referenced by getServiceType(), and setServiceType().
|
protected |
Definition at line 44 of file class.ilGlobalCacheService.php.
|
protected |
Definition at line 20 of file class.ilGlobalCacheService.php.