ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
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 () |
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' |
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 | $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 124 of file class.ilGlobalCache.php.
References $service_type, checkSettings(), getComponent(), getServiceType(), setActive(), setComponent(), and setServiceType().
|
protected |
Definition at line 146 of file class.ilGlobalCache.php.
References getSettings(), and setSettings().
Referenced by __construct().
ilGlobalCache::delete | ( | $key | ) |
$key |
Definition at line 384 of file class.ilGlobalCache.php.
References isActive().
ilGlobalCache::exists | ( | $key | ) |
$key |
RuntimeException |
Definition at line 325 of file class.ilGlobalCache.php.
ilGlobalCache::flush | ( | $complete = false | ) |
bool | $complete |
RuntimeException |
Definition at line 399 of file class.ilGlobalCache.php.
|
staticprotected |
Definition at line 174 of file class.ilGlobalCache.php.
References ilGlobalCacheSettings\LOG_LEVEL_NORMAL.
ilGlobalCache::get | ( | $key | ) |
$key |
RuntimeException |
Definition at line 359 of file class.ilGlobalCache.php.
References getComponent(), getServiceType(), isActive(), and ilGlobalCacheSettings\LOG_LEVEL_CHATTY.
ilGlobalCache::getActive | ( | ) |
Definition at line 444 of file class.ilGlobalCache.php.
References $active.
Referenced by isActive().
|
static |
Definition at line 491 of file class.ilGlobalCache.php.
|
static |
|
static |
Definition at line 216 of file class.ilGlobalCache.php.
References $types.
Referenced by ilSetupGUI\displayDatabase().
|
static |
Definition at line 507 of file class.ilGlobalCache.php.
Referenced by ilSetupGUI\displayDatabase(), and ilGlobalCacheSettings\writeToIniFile().
ilGlobalCache::getComponent | ( | ) |
Definition at line 428 of file class.ilGlobalCache.php.
References $component.
Referenced by __construct(), get(), isActive(), and set().
ilGlobalCache::getInfo | ( | ) |
Definition at line 412 of file class.ilGlobalCache.php.
ilGlobalCache::getInstallationFailureReason | ( | ) |
Definition at line 314 of file class.ilGlobalCache.php.
|
static |
null | $component |
Definition at line 107 of file class.ilGlobalCache.php.
References $component, and $service_type.
Referenced by ilGlobalCacheDBLayer\__construct(), ilCachedCtrl\__construct(), ilCachedComponentData\__construct(), ilCachedComponentData\__destruct(), ilCachedCtrl\flush(), ilCachedComponentData\flush(), ilGlobalCacheQueryWrapper\get(), HTML_Template_IT\getFile(), ilCachedCtrl\getInstance(), ilCachedComponentData\getInstance(), HTML_Template_IT\init(), ilAppEventHandler\initListeners(), ilCachedCtrl\isActive(), and ilObjectDefinition\readDefinitionData().
ilGlobalCache::getServiceType | ( | ) |
Definition at line 463 of file class.ilGlobalCache.php.
References $service_type.
Referenced by __construct(), and get().
|
static |
Definition at line 475 of file class.ilGlobalCache.php.
Referenced by checkSettings().
ilGlobalCache::isActive | ( | ) |
Definition at line 260 of file class.ilGlobalCache.php.
References getActive(), getComponent(), and ilGlobalCacheSettings\LOG_LEVEL_CHATTY.
Referenced by delete(), get(), and set().
ilGlobalCache::isCacheServiceInstallable | ( | ) |
Definition at line 306 of file class.ilGlobalCache.php.
ilGlobalCache::isInstallable | ( | ) |
Definition at line 298 of file class.ilGlobalCache.php.
ilGlobalCache::isValid | ( | $key | ) |
|
static |
$message |
Definition at line 158 of file class.ilGlobalCache.php.
References $ilLog.
Referenced by HTML_Template_IT\init(), and ilGlobalCacheSettings\writeToIniFile().
|
static |
$service_type |
Definition at line 233 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 342 of file class.ilGlobalCache.php.
References getComponent(), isActive(), and ilGlobalCacheSettings\LOG_LEVEL_CHATTY.
ilGlobalCache::setActive | ( | $active | ) |
boolean | $active |
Definition at line 436 of file class.ilGlobalCache.php.
References $active.
Referenced by __construct().
|
static |
array | $active_components |
Definition at line 499 of file class.ilGlobalCache.php.
References $active_components.
|
static |
array | $available_components |
Definition at line 515 of file class.ilGlobalCache.php.
References $available_components.
ilGlobalCache::setComponent | ( | $component | ) |
string | $component |
Definition at line 420 of file class.ilGlobalCache.php.
References $component.
Referenced by __construct().
ilGlobalCache::setServiceType | ( | $service_type | ) |
int | $service_type |
Definition at line 452 of file class.ilGlobalCache.php.
References $service_type.
Referenced by __construct().
|
static |
ilGlobalCacheSettings | $settings |
Definition at line 483 of file class.ilGlobalCache.php.
References $settings.
Referenced by checkSettings().
|
static |
ilGlobalCacheSettings | $ilGlobalCacheSettings |
Definition at line 96 of file class.ilGlobalCache.php.
References ilGlobalCacheSettings\getActivatedComponents().
Referenced by ilInitialisation\initClientIniFile().
|
protected |
Definition at line 82 of file class.ilGlobalCache.php.
Referenced by getActive(), and setActive().
|
staticprotected |
Definition at line 254 of file class.ilGlobalCache.php.
|
staticprotected |
Definition at line 45 of file class.ilGlobalCache.php.
Referenced by setActiveComponents().
|
staticprotected |
Definition at line 49 of file class.ilGlobalCache.php.
Referenced by setAvailableComponents().
|
protected |
Definition at line 78 of file class.ilGlobalCache.php.
Referenced by getComponent(), getInstance(), and setComponent().
|
protected |
Definition at line 74 of file class.ilGlobalCache.php.
|
staticprotected |
Definition at line 70 of file class.ilGlobalCache.php.
|
protected |
Definition at line 86 of file class.ilGlobalCache.php.
Referenced by __construct(), getInstance(), getServiceType(), lookupServiceClassName(), and setServiceType().
|
staticprotected |
Definition at line 90 of file class.ilGlobalCache.php.
Referenced by setSettings().
|
staticprotected |
Definition at line 62 of file class.ilGlobalCache.php.
|
staticprotected |
Definition at line 36 of file class.ilGlobalCache.php.
Referenced by getAllInstallableTypes(), and getAllTypes().
|
staticprotected |
Definition at line 66 of file class.ilGlobalCache.php.
const ilGlobalCache::ACTIVE = true |
Definition at line 17 of file class.ilGlobalCache.php.
const ilGlobalCache::COMP_CLNG = 'clng' |
Definition at line 23 of file class.ilGlobalCache.php.
const ilGlobalCache::COMP_COMPONENT = 'comp' |
Definition at line 28 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 30 of file class.ilGlobalCache.php.
Referenced by ilAppEventHandler\initListeners().
const ilGlobalCache::COMP_ILCTRL = 'ilctrl' |
Definition at line 26 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 24 of file class.ilGlobalCache.php.
const ilGlobalCache::COMP_PLUGINS = 'plugins' |
Definition at line 27 of file class.ilGlobalCache.php.
const ilGlobalCache::COMP_RBAC_UA = 'rbac_ua' |
Definition at line 29 of file class.ilGlobalCache.php.
const ilGlobalCache::COMP_TEMPLATE = 'tpl' |
Definition at line 25 of file class.ilGlobalCache.php.
Referenced by HTML_Template_IT\getFile().
const ilGlobalCache::COMP_TPL_BLOCKS = 'tpl_blocks' |
Definition at line 31 of file class.ilGlobalCache.php.
Referenced by HTML_Template_IT\init().
const ilGlobalCache::COMP_TPL_VARIABLES = 'tpl_variables' |
Definition at line 32 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 16 of file class.ilGlobalCache.php.
const ilGlobalCache::TYPE_APC = 3 |
Definition at line 21 of file class.ilGlobalCache.php.
const ilGlobalCache::TYPE_FALLBACK = self::TYPE_STATIC |
Definition at line 22 of file class.ilGlobalCache.php.
const ilGlobalCache::TYPE_MEMCACHED = 2 |
Definition at line 20 of file class.ilGlobalCache.php.
Referenced by ilSetupGUI\displayDatabase().
const ilGlobalCache::TYPE_STATIC = 0 |
Definition at line 18 of file class.ilGlobalCache.php.
const ilGlobalCache::TYPE_XCACHE = 1 |
Definition at line 19 of file class.ilGlobalCache.php.