ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilGlobalCache. More...
Public Member Functions | |
isActive () | |
isValid ($key) | |
isInstallable () | |
isCacheServiceInstallable () | |
getInstallationFailureReason () | |
exists ($key) | |
set ($key, $value, $ttl=null) | |
get ($key) | |
delete ($key) | |
flush ($complete=false) | |
getInfo () | |
setComponent ($component) | |
getComponent () | |
setActive ($active) | |
getActive () | |
setServiceType ($service_type) | |
getServiceType () | |
Static Public Member Functions | |
static | setup (ilGlobalCacheSettings $ilGlobalCacheSettings) |
static | getInstance ($component) |
static | log ($message, $log_level) |
static | getAllInstallableTypes () |
static | getAllTypes ($only_available=true) |
static | lookupServiceClassName ($service_type) |
static | lookupServiceConfigName (int $service_type) |
static | getSettings () |
static | setSettings ($settings) |
static | getActiveComponents () |
static | setActiveComponents ($active_components) |
static | getAvailableComponents () |
static | setAvailableComponents ($available_components) |
Data Fields | |
const | MSG = 'Global Cache not active, can not access cache' |
const | ACTIVE = true |
const | TYPE_STATIC = 0 |
const | TYPE_XCACHE = 1 |
const | TYPE_MEMCACHED = 2 |
const | TYPE_APC = 3 |
const | TYPE_FALLBACK = self::TYPE_STATIC |
const | COMP_CLNG = 'clng' |
const | COMP_OBJ_DEF = 'obj_def' |
const | COMP_TEMPLATE = 'tpl' |
const | COMP_ILCTRL = 'ilctrl' |
const | COMP_PLUGINS = 'plugins' |
const | COMP_COMPONENT = 'comp' |
const | COMP_RBAC_UA = 'rbac_ua' |
const | COMP_EVENTS = 'events' |
const | COMP_TPL_BLOCKS = 'tpl_blocks' |
const | COMP_TPL_VARIABLES = 'tpl_variables' |
const | COMP_GLOBAL_SCREEN = 'global_screen' |
Protected Member Functions | |
__construct ($service_type) | |
checkSettings () | |
Static Protected Member Functions | |
static | generateServiceId () |
Protected Attributes | |
$global_cache | |
$component | |
$active = true | |
$service_type = ilGlobalCache::TYPE_STATIC | |
Static Protected Attributes | |
static | $types |
static | $available_types |
static | $active_components = array() |
static | $available_components |
static | $type_per_component = array() |
static | $unique_service_id = null |
static | $instances |
static | $settings |
static | $active_cache = array() |
|
protected |
$service_type |
Definition at line 132 of file class.ilGlobalCache.php.
References $service_type, checkSettings(), generateServiceId(), and setServiceType().
|
protected |
Definition at line 154 of file class.ilGlobalCache.php.
References getSettings(), and setSettings().
Referenced by __construct().
ilGlobalCache::delete | ( | $key | ) |
$key |
Definition at line 400 of file class.ilGlobalCache.php.
References isActive().
ilGlobalCache::exists | ( | $key | ) |
$key |
RuntimeException |
Definition at line 344 of file class.ilGlobalCache.php.
ilGlobalCache::flush | ( | $complete = false | ) |
bool | $complete |
RuntimeException |
Definition at line 414 of file class.ilGlobalCache.php.
|
staticprotected |
Definition at line 182 of file class.ilGlobalCache.php.
References CLIENT_ID.
Referenced by __construct().
ilGlobalCache::get | ( | $key | ) |
$key |
RuntimeException |
Definition at line 376 of file class.ilGlobalCache.php.
References getComponent(), getServiceType(), isActive(), log(), ilGlobalCacheSettings\LOG_LEVEL_CHATTY, and lookupServiceClassName().
ilGlobalCache::getActive | ( | ) |
Definition at line 455 of file class.ilGlobalCache.php.
References $active.
Referenced by isActive().
|
static |
Definition at line 502 of file class.ilGlobalCache.php.
References $active_components.
|
static |
Definition at line 213 of file class.ilGlobalCache.php.
|
static |
bool | $only_available |
Definition at line 229 of file class.ilGlobalCache.php.
|
static |
Definition at line 518 of file class.ilGlobalCache.php.
References $available_components.
Referenced by ilGlobalCacheSettings\activateAll(), ilGlobalCacheSettings\areAllComponentActivated(), ilGlobalCacheMetricsCollectedObjective\collectFrom(), and ilGlobalCacheSettings\writeToIniFile().
ilGlobalCache::getComponent | ( | ) |
Definition at line 439 of file class.ilGlobalCache.php.
References $component.
Referenced by get(), isActive(), and set().
ilGlobalCache::getInfo | ( | ) |
Definition at line 423 of file class.ilGlobalCache.php.
ilGlobalCache::getInstallationFailureReason | ( | ) |
Definition at line 334 of file class.ilGlobalCache.php.
|
static |
null | $component |
Definition at line 115 of file class.ilGlobalCache.php.
References $component, $service_type, and getSettings().
Referenced by ilCachedComponentData\__construct(), ilMMItemRepository\__construct(), ilCachedCtrl\__construct(), arConnectorCache\__construct(), ilCachedComponentData\__destruct(), ilCachedComponentData\flush(), ilCachedCtrl\flush(), ilGlobalCacheQueryWrapper\get(), ilMMCustomItemStorage\getCache(), ilMMItemStorage\getCache(), ilMMItemTranslationStorage\getCache(), ilMMTypeActionStorage\getCache(), HTML_Template_IT\getFile(), ilCachedComponentData\getInstance(), ilCachedCtrl\getInstance(), HTML_Template_IT\init(), ilAppEventHandler\initListeners(), ilCachedCtrl\isActive(), and ilObjectDefinition\readDefinitionData().
ilGlobalCache::getServiceType | ( | ) |
Definition at line 474 of file class.ilGlobalCache.php.
References $service_type.
Referenced by get().
|
static |
Definition at line 486 of file class.ilGlobalCache.php.
Referenced by checkSettings(), and getInstance().
ilGlobalCache::isActive | ( | ) |
Definition at line 280 of file class.ilGlobalCache.php.
References $c, getActive(), getComponent(), log(), and ilGlobalCacheSettings\LOG_LEVEL_CHATTY.
Referenced by delete(), get(), and set().
ilGlobalCache::isCacheServiceInstallable | ( | ) |
Definition at line 326 of file class.ilGlobalCache.php.
ilGlobalCache::isInstallable | ( | ) |
Definition at line 318 of file class.ilGlobalCache.php.
ilGlobalCache::isValid | ( | $key | ) |
$key |
Definition at line 310 of file class.ilGlobalCache.php.
|
static |
$message |
Definition at line 165 of file class.ilGlobalCache.php.
References $DIC, and $message.
Referenced by get(), HTML_Template_IT\init(), isActive(), set(), and ilGlobalCacheSettings\writeToIniFile().
|
static |
Definition at line 244 of file class.ilGlobalCache.php.
References $service_type, TYPE_APC, TYPE_MEMCACHED, and TYPE_XCACHE.
Referenced by ilGlobalCacheSettings\__toString(), and get().
|
static |
Definition at line 258 of file class.ilGlobalCache.php.
References $service_type, TYPE_APC, TYPE_MEMCACHED, and TYPE_XCACHE.
Referenced by ilGlobalCacheMetricsCollectedObjective\collectFrom().
ilGlobalCache::set | ( | $key, | |
$value, | |||
$ttl = null |
|||
) |
$key | ||
$value | ||
null | $ttl |
RuntimeException |
Definition at line 360 of file class.ilGlobalCache.php.
References getComponent(), isActive(), log(), and ilGlobalCacheSettings\LOG_LEVEL_CHATTY.
ilGlobalCache::setActive | ( | $active | ) |
boolean | $active |
Definition at line 447 of file class.ilGlobalCache.php.
References $active.
|
static |
array | $active_components |
Definition at line 510 of file class.ilGlobalCache.php.
References $active_components.
Referenced by setup().
|
static |
array | $available_components |
Definition at line 526 of file class.ilGlobalCache.php.
References $available_components.
ilGlobalCache::setComponent | ( | $component | ) |
string | $component |
Definition at line 431 of file class.ilGlobalCache.php.
References $component.
ilGlobalCache::setServiceType | ( | $service_type | ) |
int | $service_type |
Definition at line 463 of file class.ilGlobalCache.php.
References $service_type.
Referenced by __construct().
|
static |
ilGlobalCacheSettings | $settings |
Definition at line 494 of file class.ilGlobalCache.php.
References $settings.
Referenced by checkSettings(), and setup().
|
static |
ilGlobalCacheSettings | $ilGlobalCacheSettings |
Definition at line 105 of file class.ilGlobalCache.php.
References ilGlobalCacheSettings\getActivatedComponents(), setActiveComponents(), and setSettings().
Referenced by ilInitialisation\initClientIniFile().
|
protected |
Definition at line 92 of file class.ilGlobalCache.php.
Referenced by getActive(), and setActive().
|
staticprotected |
Definition at line 275 of file class.ilGlobalCache.php.
|
staticprotected |
Definition at line 54 of file class.ilGlobalCache.php.
Referenced by getActiveComponents(), and setActiveComponents().
|
staticprotected |
Definition at line 58 of file class.ilGlobalCache.php.
Referenced by getAvailableComponents(), and setAvailableComponents().
|
staticprotected |
Definition at line 45 of file class.ilGlobalCache.php.
|
protected |
Definition at line 88 of file class.ilGlobalCache.php.
Referenced by getComponent(), getInstance(), and setComponent().
|
protected |
Definition at line 84 of file class.ilGlobalCache.php.
|
staticprotected |
Definition at line 80 of file class.ilGlobalCache.php.
|
protected |
Definition at line 96 of file class.ilGlobalCache.php.
Referenced by __construct(), getInstance(), getServiceType(), lookupServiceClassName(), lookupServiceConfigName(), and setServiceType().
|
staticprotected |
Definition at line 100 of file class.ilGlobalCache.php.
Referenced by setSettings().
|
staticprotected |
Definition at line 72 of file class.ilGlobalCache.php.
|
staticprotected |
Definition at line 36 of file class.ilGlobalCache.php.
Referenced by getAllInstallableTypes(), and getAllTypes().
|
staticprotected |
Definition at line 76 of file class.ilGlobalCache.php.
const ilGlobalCache::ACTIVE = true |
Definition at line 16 of file class.ilGlobalCache.php.
const ilGlobalCache::COMP_CLNG = 'clng' |
Definition at line 22 of file class.ilGlobalCache.php.
const ilGlobalCache::COMP_COMPONENT = 'comp' |
Definition at line 27 of file class.ilGlobalCache.php.
Referenced by ilCachedComponentData\__construct(), ilCachedComponentData\__destruct(), ilCachedComponentData\flush(), ilCachedComponentData\getInstance(), and ilObjectDefinition\readDefinitionData().
const ilGlobalCache::COMP_EVENTS = 'events' |
Definition at line 29 of file class.ilGlobalCache.php.
Referenced by ilAppEventHandler\initListeners().
const ilGlobalCache::COMP_GLOBAL_SCREEN = 'global_screen' |
Definition at line 32 of file class.ilGlobalCache.php.
Referenced by ilMMItemRepository\__construct(), arConnectorCache\__construct(), ilMMCustomItemStorage\getCache(), ilMMItemStorage\getCache(), ilMMItemTranslationStorage\getCache(), and ilMMTypeActionStorage\getCache().
const ilGlobalCache::COMP_ILCTRL = 'ilctrl' |
Definition at line 25 of file class.ilGlobalCache.php.
Referenced by ilCachedCtrl\__construct(), ilCachedCtrl\flush(), ilCachedCtrl\getInstance(), and ilCachedCtrl\isActive().
const ilGlobalCache::COMP_OBJ_DEF = 'obj_def' |
Definition at line 23 of file class.ilGlobalCache.php.
const ilGlobalCache::COMP_PLUGINS = 'plugins' |
Definition at line 26 of file class.ilGlobalCache.php.
const ilGlobalCache::COMP_RBAC_UA = 'rbac_ua' |
Definition at line 28 of file class.ilGlobalCache.php.
const ilGlobalCache::COMP_TEMPLATE = 'tpl' |
Definition at line 24 of file class.ilGlobalCache.php.
Referenced by HTML_Template_IT\getFile().
const ilGlobalCache::COMP_TPL_BLOCKS = 'tpl_blocks' |
Definition at line 30 of file class.ilGlobalCache.php.
Referenced by HTML_Template_IT\init().
const ilGlobalCache::COMP_TPL_VARIABLES = 'tpl_variables' |
Definition at line 31 of file class.ilGlobalCache.php.
Referenced by HTML_Template_IT\init().
const ilGlobalCache::MSG = 'Global Cache not active, can not access cache' |
Definition at line 15 of file class.ilGlobalCache.php.
const ilGlobalCache::TYPE_APC = 3 |
Definition at line 20 of file class.ilGlobalCache.php.
Referenced by ilGlobalCacheSetupAgent\getArrayToConfigTransformation(), lookupServiceClassName(), and lookupServiceConfigName().
const ilGlobalCache::TYPE_FALLBACK = self::TYPE_STATIC |
Definition at line 21 of file class.ilGlobalCache.php.
const ilGlobalCache::TYPE_MEMCACHED = 2 |
Definition at line 19 of file class.ilGlobalCache.php.
Referenced by ilGlobalCacheMetricsCollectedObjective\collectFrom(), ilGlobalCacheSetupAgent\getArrayToConfigTransformation(), lookupServiceClassName(), and lookupServiceConfigName().
const ilGlobalCache::TYPE_STATIC = 0 |
Definition at line 17 of file class.ilGlobalCache.php.
Referenced by ilGlobalCacheSetupAgent\getArrayToConfigTransformation().
const ilGlobalCache::TYPE_XCACHE = 1 |
Definition at line 18 of file class.ilGlobalCache.php.
Referenced by ilGlobalCacheSetupAgent\getArrayToConfigTransformation(), lookupServiceClassName(), and lookupServiceConfigName().