Class ilGlobalCacheService.
More...
Class ilGlobalCacheService.
Base class for all concrete cache implementations.
- Author
- Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
- Version
- 1.0.1
Definition at line 11 of file class.ilGlobalCacheService.php.
◆ __construct()
ilGlobalCacheService::__construct |
( |
|
$service_id, |
|
|
|
$component |
|
) |
| |
◆ checkMemory()
ilGlobalCacheService::checkMemory |
( |
| ) |
|
|
protected |
◆ delete()
ilGlobalCacheService::delete |
( |
|
$key | ) |
|
|
abstract |
◆ exists()
ilGlobalCacheService::exists |
( |
|
$key | ) |
|
|
abstract |
◆ flush()
ilGlobalCacheService::flush |
( |
| ) |
|
|
abstract |
◆ get()
ilGlobalCacheService::get |
( |
|
$key | ) |
|
|
abstract |
◆ getActive()
ilGlobalCacheService::getActive |
( |
| ) |
|
|
abstractprotected |
◆ getComponent()
ilGlobalCacheService::getComponent |
( |
| ) |
|
◆ getInfo()
ilGlobalCacheService::getInfo |
( |
| ) |
|
◆ getInstallable()
ilGlobalCacheService::getInstallable |
( |
| ) |
|
|
abstractprotected |
◆ getInstallationFailureReason()
ilGlobalCacheService::getInstallationFailureReason |
( |
| ) |
|
◆ getMemoryLimit()
ilGlobalCacheService::getMemoryLimit |
( |
| ) |
|
|
protected |
◆ getMinMemory()
ilGlobalCacheService::getMinMemory |
( |
| ) |
|
|
protected |
◆ getServiceId()
ilGlobalCacheService::getServiceId |
( |
| ) |
|
◆ getServiceType()
ilGlobalCacheService::getServiceType |
( |
| ) |
|
◆ isActive()
ilGlobalCacheService::isActive |
( |
| ) |
|
◆ isInstallable()
ilGlobalCacheService::isInstallable |
( |
| ) |
|
◆ isValid()
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.
- Parameters
-
string | $key | The key which should be checked. |
- Returns
- bool True if the key is valid otherwise false.
Definition at line 307 of file class.ilGlobalCacheService.php.
308 return isset($this->valid_keys[$key]);
◆ returnKey()
ilGlobalCacheService::returnKey |
( |
|
$key | ) |
|
- Parameters
-
- Returns
- string
Definition at line 158 of file class.ilGlobalCacheService.php.
References getComponent(), and getServiceId().
Referenced by ilApc\delete(), ilXcache\delete(), ilMemcache\delete(), ilApc\exists(), ilXcache\exists(), ilMemcache\exists(), ilApc\get(), ilXcache\get(), ilMemcache\get(), ilApc\set(), ilXcache\set(), and ilMemcache\set().
◆ serialize()
ilGlobalCacheService::serialize |
( |
|
$value | ) |
|
|
abstract |
◆ set()
ilGlobalCacheService::set |
( |
|
$key, |
|
|
|
$serialized_value, |
|
|
|
$ttl = null |
|
) |
| |
|
abstract |
- Parameters
-
| $key | |
| $serialized_value | |
null | $ttl | |
- Returns
- bool
◆ setComponent()
ilGlobalCacheService::setComponent |
( |
|
$component | ) |
|
◆ setInvalid()
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.
- Parameters
-
string | $key | The key which should be invalidated or null to invalidate all. |
- Returns
- void
Definition at line 288 of file class.ilGlobalCacheService.php.
290 unset($this->valid_keys[$key]);
292 unset($this->valid_keys);
◆ setServiceId()
ilGlobalCacheService::setServiceId |
( |
|
$service_id | ) |
|
◆ setServiceType()
ilGlobalCacheService::setServiceType |
( |
|
$service_type | ) |
|
◆ setValid()
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.
- Parameters
-
string | $key | The key which should be declared as valid. |
- Returns
- void
Definition at line 273 of file class.ilGlobalCacheService.php.
274 $this->valid_keys[$key] =
true;
◆ unserialize()
ilGlobalCacheService::unserialize |
( |
|
$serialized_value | ) |
|
|
abstract |
◆ $active
ilGlobalCacheService::$active = array() |
|
staticprotected |
◆ $component
ilGlobalCacheService::$component = '' |
|
protected |
◆ $current_time
ilGlobalCacheService::$current_time = 0 |
|
protected |
◆ $installable
ilGlobalCacheService::$installable = array() |
|
staticprotected |
◆ $service_id
ilGlobalCacheService::$service_id = '' |
|
protected |
◆ $service_type
◆ $valid_key_hash
ilGlobalCacheService::$valid_key_hash = '' |
|
protected |
◆ $valid_keys
ilGlobalCacheService::$valid_keys = array() |
|
protected |
The documentation for this class was generated from the following file: