|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
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 ($complete=false) | |
| 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 52 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 218 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 |
| bool | $complete |
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 128 of file class.ilGlobalCacheService.php.
References $component.
Referenced by ilStaticCache\delete(), ilStaticCache\exists(), ilStaticCache\flush(), 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 175 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 184 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 200 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 209 of file class.ilGlobalCacheService.php.
Referenced by checkMemory(), and getInstallationFailureReason().
Here is the caller graph for this function:| ilGlobalCacheService::getServiceId | ( | ) |
Definition at line 110 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 275 of file class.ilGlobalCacheService.php.
References $service_type.
| ilGlobalCacheService::isActive | ( | ) |
Definition at line 146 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 155 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 327 of file class.ilGlobalCacheService.php.
| ilGlobalCacheService::returnKey | ( | $key | ) |
| $key |
Definition at line 166 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 137 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 307 of file class.ilGlobalCacheService.php.
| ilGlobalCacheService::setServiceId | ( | $service_id | ) |
| string | $service_id |
Definition at line 119 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 266 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 291 of file class.ilGlobalCacheService.php.
|
abstract |
| $serialized_value |
Reimplemented in ilApc, ilMemcache, ilShm, ilStaticCache, and ilXcache.
|
staticprotected |
Definition at line 25 of file class.ilGlobalCacheService.php.
Referenced by ilXcache\getActive().
|
protected |
Definition at line 37 of file class.ilGlobalCacheService.php.
Referenced by __construct(), ilShm\__construct(), ilXcache\__construct(), getComponent(), and setComponent().
|
protected |
Definition at line 17 of file class.ilGlobalCacheService.php.
|
staticprotected |
Definition at line 29 of file class.ilGlobalCacheService.php.
|
protected |
Definition at line 33 of file class.ilGlobalCacheService.php.
Referenced by __construct(), ilShm\__construct(), getServiceId(), and setServiceId().
|
protected |
Definition at line 41 of file class.ilGlobalCacheService.php.
Referenced by getServiceType(), and setServiceType().
|
protected |
Definition at line 45 of file class.ilGlobalCacheService.php.
|
protected |
Definition at line 21 of file class.ilGlobalCacheService.php.