ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 | 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(), getComponent(), getServiceType(), setActive(), setComponent(), 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 394 of file class.ilGlobalCache.php.
References $key, and isActive().
ilGlobalCache::exists | ( | $key | ) |
$key |
RuntimeException |
Definition at line 338 of file class.ilGlobalCache.php.
References $key.
ilGlobalCache::flush | ( | $complete = false | ) |
bool | $complete |
RuntimeException |
Definition at line 408 of file class.ilGlobalCache.php.
|
staticprotected |
Definition at line 182 of file class.ilGlobalCache.php.
References $type, and ilGlobalCacheSettings\LOG_LEVEL_NORMAL.
ilGlobalCache::get | ( | $key | ) |
$key |
RuntimeException |
Definition at line 370 of file class.ilGlobalCache.php.
References $key, getComponent(), getServiceType(), isActive(), and ilGlobalCacheSettings\LOG_LEVEL_CHATTY.
ilGlobalCache::getActive | ( | ) |
Definition at line 449 of file class.ilGlobalCache.php.
References $active.
Referenced by isActive().
|
static |
Definition at line 496 of file class.ilGlobalCache.php.
|
static |
|
static |
bool | $only_available |
Definition at line 229 of file class.ilGlobalCache.php.
Referenced by ilSetupGUI\bt_tabs().
|
static |
Definition at line 512 of file class.ilGlobalCache.php.
Referenced by ilGlobalCacheSettings\activateAll(), ilGlobalCacheSettings\areAllComponentActivated(), ilSetupGUI\bt_tabs(), and ilGlobalCacheSettings\writeToIniFile().
ilGlobalCache::getComponent | ( | ) |
Definition at line 433 of file class.ilGlobalCache.php.
References $component.
Referenced by __construct(), get(), isActive(), and set().
ilGlobalCache::getInfo | ( | ) |
Definition at line 417 of file class.ilGlobalCache.php.
ilGlobalCache::getInstallationFailureReason | ( | ) |
Definition at line 328 of file class.ilGlobalCache.php.
|
static |
null | $component |
Definition at line 115 of file class.ilGlobalCache.php.
References $component, and $service_type.
Referenced by arConnectorCache\__construct(), ilCachedCtrl\__construct(), ilCachedComponentData\__construct(), ilCachedComponentData\__destruct(), ILIAS\GlobalScreen\Collector\CoreStorageFacade\cache(), ilCachedCtrl\flush(), ilCachedComponentData\flush(), ilGlobalCacheQueryWrapper\get(), ilGSProviderStorage\getCache(), ilMMItemStorage\getCache(), ilGSIdentificationStorage\getCache(), ilMMTypeActionStorage\getCache(), ilMMCustomItemStorage\getCache(), ilMMItemTranslationStorage\getCache(), HTML_Template_IT\getFile(), ilCachedCtrl\getInstance(), ilCachedComponentData\getInstance(), HTML_Template_IT\init(), ilAppEventHandler\initListeners(), ilCachedCtrl\isActive(), and ilObjectDefinition\readDefinitionData().
ilGlobalCache::getServiceType | ( | ) |
Definition at line 468 of file class.ilGlobalCache.php.
References $service_type.
Referenced by __construct(), and get().
|
static |
Definition at line 480 of file class.ilGlobalCache.php.
Referenced by checkSettings().
ilGlobalCache::isActive | ( | ) |
Definition at line 274 of file class.ilGlobalCache.php.
References $c, getActive(), getComponent(), and ilGlobalCacheSettings\LOG_LEVEL_CHATTY.
Referenced by delete(), get(), and set().
ilGlobalCache::isCacheServiceInstallable | ( | ) |
Definition at line 320 of file class.ilGlobalCache.php.
ilGlobalCache::isInstallable | ( | ) |
Definition at line 312 of file class.ilGlobalCache.php.
ilGlobalCache::isValid | ( | $key | ) |
$key |
Definition at line 304 of file class.ilGlobalCache.php.
References $key.
|
static |
$message |
Definition at line 165 of file class.ilGlobalCache.php.
References $DIC, $ilLog, and $message.
Referenced by HTML_Template_IT\init(), and ilGlobalCacheSettings\writeToIniFile().
|
static |
$service_type |
Definition at line 248 of file class.ilGlobalCache.php.
References $service_type.
Referenced by ilGlobalCacheSettings\__toString().
ilGlobalCache::set | ( | $key, | |
$value, | |||
$ttl = null |
|||
) |
$key | ||
$value | ||
null | $ttl |
RuntimeException |
Definition at line 354 of file class.ilGlobalCache.php.
References $key, getComponent(), isActive(), and ilGlobalCacheSettings\LOG_LEVEL_CHATTY.
ilGlobalCache::setActive | ( | $active | ) |
boolean | $active |
Definition at line 441 of file class.ilGlobalCache.php.
References $active.
Referenced by __construct().
|
static |
array | $active_components |
Definition at line 504 of file class.ilGlobalCache.php.
References $active_components.
|
static |
array | $available_components |
Definition at line 520 of file class.ilGlobalCache.php.
References $available_components.
ilGlobalCache::setComponent | ( | $component | ) |
string | $component |
Definition at line 425 of file class.ilGlobalCache.php.
References $component.
Referenced by __construct().
ilGlobalCache::setServiceType | ( | $service_type | ) |
int | $service_type |
Definition at line 457 of file class.ilGlobalCache.php.
References $service_type.
Referenced by __construct().
|
static |
ilGlobalCacheSettings | $settings |
Definition at line 488 of file class.ilGlobalCache.php.
References $settings.
Referenced by checkSettings().
|
static |
ilGlobalCacheSettings | $ilGlobalCacheSettings |
Definition at line 105 of file class.ilGlobalCache.php.
References ilGlobalCacheSettings\getActivatedComponents().
Referenced by ilInitialisation\initClientIniFile().
|
protected |
Definition at line 92 of file class.ilGlobalCache.php.
Referenced by getActive(), and setActive().
|
staticprotected |
Definition at line 269 of file class.ilGlobalCache.php.
|
staticprotected |
Definition at line 54 of file class.ilGlobalCache.php.
Referenced by setActiveComponents().
|
staticprotected |
Definition at line 58 of file class.ilGlobalCache.php.
Referenced by 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(), 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 arConnectorCache\__construct(), ILIAS\GlobalScreen\Collector\CoreStorageFacade\cache(), ilGSProviderStorage\getCache(), ilMMItemStorage\getCache(), ilGSIdentificationStorage\getCache(), ilMMTypeActionStorage\getCache(), ilMMCustomItemStorage\getCache(), and ilMMItemTranslationStorage\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.
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 ilSetupGUI\bt_tabs().
const ilGlobalCache::TYPE_STATIC = 0 |
Definition at line 17 of file class.ilGlobalCache.php.
const ilGlobalCache::TYPE_XCACHE = 1 |
Definition at line 18 of file class.ilGlobalCache.php.