|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Inheritance diagram for ilGlobalCacheService:
Collaboration diagram for ilGlobalCacheService:Public Member Functions | |
| __construct (string $service_id, string $component) | |
| ilGlobalCacheService constructor. More... | |
| unserialize ($serialized_value) | |
| get (string $key) | |
| set (string $key, $serialized_value, int $ttl=null) | |
| serialize ($value) | |
| getServiceId () | |
| setServiceId (string $service_id) | |
| getComponent () | |
| setComponent (string $component) | |
| isActive () | |
| isInstallable () | |
| returnKey (string $key) | |
| getInfo () | |
| getInstallationFailureReason () | |
| exists (string $key) | |
| delete (string $key) | |
| flush (bool $complete=false) | |
| setServiceType (int $service_type) | |
| getServiceType () | |
| setValid (string $key) | |
| Declare a key as valid. More... | |
| isValid (string $key) | |
| Checks whether the cache key is valid or not. More... | |
| unserialize ($serialized_value) | |
| get (string $key) | |
| set (string $key, $serialized_value, int $ttl=null) | |
| getServiceId () | |
| setServiceId (string $service_id) | |
| getComponent () | |
| setComponent (string $component) | |
| isActive () | |
| isInstallable () | |
| returnKey (string $key) | |
| getInfo () | |
| getInstallationFailureReason () | |
| exists (string $key) | |
| delete (string $key) | |
| flush (bool $complete=false) | |
| setServiceType (int $service_type) | |
| getServiceType () | |
| setValid (string $key) | |
| Declare a key as valid. More... | |
| isValid (string $key) | |
| Checks whether the cache key is valid or not. More... | |
Protected Member Functions | |
| getActive () | |
| getInstallable () | |
| getMemoryLimit () | |
| getMinMemory () | |
| checkMemory () | |
Protected Attributes | |
| int | $current_time = 0 |
| array | $valid_keys = array() |
| string | $service_id = '' |
| string | $component = '' |
| int | $service_type = ilGlobalCache::TYPE_STATIC |
| string | $valid_key_hash = '' |
Static Protected Attributes | |
| static array | $active = array() |
| static array | $installable = array() |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilGlobalCacheService Base class for all concrete cache implementations.
Definition at line 25 of file class.ilGlobalCacheService.php.
| ilGlobalCacheService::__construct | ( | string | $service_id, |
| string | $component | ||
| ) |
ilGlobalCacheService constructor.
Reimplemented in ilShm.
Definition at line 39 of file class.ilGlobalCacheService.php.
References checkMemory(), getActive(), getInstallable(), setComponent(), and setServiceId().
Here is the call graph for this function:
|
protected |
Definition at line 135 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 |
Implements ilGlobalCacheServiceInterface.
Reimplemented in ilApc, ilMemcache, ilShm, and ilStaticCache.
|
abstract |
Implements ilGlobalCacheServiceInterface.
Reimplemented in ilApc, ilMemcache, ilShm, and ilStaticCache.
|
abstract |
Implements ilGlobalCacheServiceInterface.
Reimplemented in ilApc, ilMemcache, ilShm, and ilStaticCache.
|
abstract |
Implements ilGlobalCacheServiceInterface.
Reimplemented in ilApc, ilMemcache, ilShm, and ilStaticCache.
|
abstractprotected |
Reimplemented in ilApc, ilMemcache, ilShm, and ilStaticCache.
Referenced by __construct().
Here is the caller graph for this function:| ilGlobalCacheService::getComponent | ( | ) |
Implements ilGlobalCacheServiceInterface.
Definition at line 83 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 | ( | ) |
Implements ilGlobalCacheServiceInterface.
Reimplemented in ilApc, and ilMemcache.
Definition at line 108 of file class.ilGlobalCacheService.php.
|
abstractprotected |
Reimplemented in ilApc, ilMemcache, ilShm, and ilStaticCache.
Referenced by __construct(), and getInstallationFailureReason().
Here is the caller graph for this function:| ilGlobalCacheService::getInstallationFailureReason | ( | ) |
Implements ilGlobalCacheServiceInterface.
Reimplemented in ilMemcache.
Definition at line 113 of file class.ilGlobalCacheService.php.
References checkMemory(), getInstallable(), and getMinMemory().
Here is the call graph for this function:
|
protected |
Reimplemented in ilApc.
Definition at line 125 of file class.ilGlobalCacheService.php.
Referenced by checkMemory().
Here is the caller graph for this function:
|
protected |
Reimplemented in ilApc.
Definition at line 130 of file class.ilGlobalCacheService.php.
Referenced by checkMemory(), and getInstallationFailureReason().
Here is the caller graph for this function:| ilGlobalCacheService::getServiceId | ( | ) |
Implements ilGlobalCacheServiceInterface.
Definition at line 73 of file class.ilGlobalCacheService.php.
References $service_id.
Referenced by ilApc\getInfo(), and returnKey().
Here is the caller graph for this function:| ilGlobalCacheService::getServiceType | ( | ) |
Implements ilGlobalCacheServiceInterface.
Definition at line 163 of file class.ilGlobalCacheService.php.
References $service_type.
| ilGlobalCacheService::isActive | ( | ) |
Implements ilGlobalCacheServiceInterface.
Definition at line 93 of file class.ilGlobalCacheService.php.
| ilGlobalCacheService::isInstallable | ( | ) |
Implements ilGlobalCacheServiceInterface.
Definition at line 98 of file class.ilGlobalCacheService.php.
Referenced by ilMemcache\getInfo().
Here is the caller graph for this function:| ilGlobalCacheService::isValid | ( | string | $key | ) |
Checks whether the cache key is valid or not.
Implements ilGlobalCacheServiceInterface.
Reimplemented in ilApc, and ilMemcache.
Definition at line 173 of file class.ilGlobalCacheService.php.
References ILIAS\LTI\ToolProvider\$key.
| ilGlobalCacheService::returnKey | ( | string | $key | ) |
Implements ilGlobalCacheServiceInterface.
Definition at line 103 of file class.ilGlobalCacheService.php.
References ILIAS\LTI\ToolProvider\$key, getComponent(), and getServiceId().
Referenced by ilApc\delete(), ilMemcache\delete(), ilApc\exists(), ilMemcache\exists(), ilApc\get(), ilMemcache\get(), ilApc\set(), and ilMemcache\set().
Here is the call graph for this function:
Here is the caller graph for this function:
|
abstract |
|
abstract |
| mixed | $serialized_value |
Implements ilGlobalCacheServiceInterface.
Reimplemented in ilApc, ilMemcache, ilShm, and ilStaticCache.
| ilGlobalCacheService::setComponent | ( | string | $component | ) |
Implements ilGlobalCacheServiceInterface.
Definition at line 88 of file class.ilGlobalCacheService.php.
References $component.
Referenced by __construct().
Here is the caller graph for this function:| ilGlobalCacheService::setServiceId | ( | string | $service_id | ) |
Implements ilGlobalCacheServiceInterface.
Definition at line 78 of file class.ilGlobalCacheService.php.
References $service_id.
Referenced by __construct().
Here is the caller graph for this function:| ilGlobalCacheService::setServiceType | ( | int | $service_type | ) |
Implements ilGlobalCacheServiceInterface.
Definition at line 158 of file class.ilGlobalCacheService.php.
References $service_type.
| ilGlobalCacheService::setValid | ( | string | $key | ) |
Declare a key as valid.
If the key is already known no action is taken.
Implements ilGlobalCacheServiceInterface.
Definition at line 168 of file class.ilGlobalCacheService.php.
References ILIAS\LTI\ToolProvider\$key.
|
abstract |
| mixed | $serialized_value |
Implements ilGlobalCacheServiceInterface.
Reimplemented in ilApc, ilMemcache, ilShm, and ilStaticCache.
|
staticprotected |
Definition at line 29 of file class.ilGlobalCacheService.php.
|
protected |
Definition at line 32 of file class.ilGlobalCacheService.php.
Referenced by ilShm\__construct(), getComponent(), and setComponent().
|
protected |
Definition at line 27 of file class.ilGlobalCacheService.php.
|
staticprotected |
Definition at line 30 of file class.ilGlobalCacheService.php.
|
protected |
Definition at line 31 of file class.ilGlobalCacheService.php.
Referenced by ilShm\__construct(), getServiceId(), and setServiceId().
|
protected |
Definition at line 33 of file class.ilGlobalCacheService.php.
Referenced by getServiceType(), and setServiceType().
|
protected |
Definition at line 34 of file class.ilGlobalCacheService.php.
|
protected |
Definition at line 28 of file class.ilGlobalCacheService.php.