ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
isActive () | |
isValid (string $key) | |
isInstallable () | |
isCacheServiceInstallable () | |
getInstallationFailureReason () | |
exists (string $key) | |
set (string $key, $value, int $ttl=null) | |
get (string $key) | |
delete (string $key) | |
flush (bool $complete=false) | |
getInfo () | |
setComponent (string $component) | |
getComponent () | |
setActive (bool $active) | |
getActive () | |
setServiceType (int $service_type) | |
getServiceType () | |
Static Public Member Functions | |
static | setup (ilGlobalCacheSettings $ilGlobalCacheSettings) |
static | getInstance (?string $component) |
static | log (string $message, int $log_level) |
static | getAllInstallableTypes () |
static | getAllTypes (bool $only_available=true) |
static | lookupServiceClassName (int $service_type) |
static | lookupServiceConfigName (int $service_type) |
static | getSettings () |
static | setSettings (ilGlobalCacheSettings $settings) |
static | getActiveComponents () |
static | setActiveComponents (array $active_components) |
static | getAvailableComponents () |
static | setAvailableComponents (array $available_components) |
Data Fields | |
const | MSG = 'Global Cache not active, can not access cache' |
const | ACTIVE = true |
const | TYPE_STATIC = 0 |
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_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 (int $service_type) | |
checkSettings () | |
Static Protected Member Functions | |
static | generateServiceId () |
Protected Attributes | |
ilGlobalCacheService | $global_cache |
string | $component = null |
bool | $active = true |
int | $service_type = ilGlobalCache::TYPE_STATIC |
Static Protected Attributes | |
static array | $types |
static array | $available_types |
static array | $active_components = array() |
static array | $available_components |
static array | $type_per_component = array() |
static string | $unique_service_id = null |
static array | $instances = null |
static ilGlobalCacheSettings | $settings = null |
static array | $active_cache = 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 ilGlobalCache
Definition at line 24 of file class.ilGlobalCache.php.
|
protected |
Definition at line 140 of file class.ilGlobalCache.php.
References $serviceName, getComponent(), getServiceType(), setActive(), setComponent(), and setServiceType().
|
protected |
Definition at line 162 of file class.ilGlobalCache.php.
ilGlobalCache::delete | ( | string | $key | ) |
Definition at line 368 of file class.ilGlobalCache.php.
References isActive().
ilGlobalCache::exists | ( | string | $key | ) |
ilGlobalCache::flush | ( | bool | $complete = false | ) |
RuntimeException |
Definition at line 380 of file class.ilGlobalCache.php.
|
staticprotected |
Definition at line 180 of file class.ilGlobalCache.php.
References $service, $serviceName, $type, CLIENT_ID, and ilGlobalCacheSettings\LOG_LEVEL_NORMAL.
ilGlobalCache::get | ( | string | $key | ) |
RuntimeException |
Definition at line 342 of file class.ilGlobalCache.php.
References getComponent(), getServiceType(), isActive(), and ilGlobalCacheSettings\LOG_LEVEL_CHATTY.
Referenced by ilCachedObjectDefinition\getInstance().
ilGlobalCache::getActive | ( | ) |
Definition at line 409 of file class.ilGlobalCache.php.
References $active.
Referenced by isActive().
|
static |
Definition at line 434 of file class.ilGlobalCache.php.
|
static |
Definition at line 212 of file class.ilGlobalCache.php.
|
static |
Definition at line 224 of file class.ilGlobalCache.php.
|
static |
Definition at line 444 of file class.ilGlobalCache.php.
Referenced by ilGlobalCacheSettings\activateAll(), ilGlobalCacheSettings\areAllComponentActivated(), ilGlobalCacheMetricsCollectedObjective\collectFrom(), and ilGlobalCacheSettings\writeToIniFile().
ilGlobalCache::getComponent | ( | ) |
Definition at line 399 of file class.ilGlobalCache.php.
References $component.
Referenced by __construct(), get(), isActive(), and set().
ilGlobalCache::getInfo | ( | ) |
Definition at line 389 of file class.ilGlobalCache.php.
ilGlobalCache::getInstallationFailureReason | ( | ) |
Definition at line 306 of file class.ilGlobalCache.php.
|
static |
Definition at line 126 of file class.ilGlobalCache.php.
References $component, $service_type, and ILIAS\LTI\ToolProvider\getSettings().
Referenced by arConnectorCache\__construct(), ilCachedObjectDefinition\__construct(), ilCachedLanguage\__construct(), ilMMItemRepository\__construct(), ilCachedObjectDefinition\__destruct(), ilCachedObjectDefinition\flush(), ilMMItemStorage\getCache(), ilMMTypeActionStorage\getCache(), ilMMItemTranslationStorage\getCache(), ilMMCustomItemStorage\getCache(), HTML_Template_IT\getFile(), ilCachedObjectDefinition\getInstance(), HTML_Template_IT\init(), ilAppEventHandler\initListeners(), ilObjectDefinition\readDefinitionData(), ilServicesGlobalCacheTest\testService(), and ilServicesGlobalCacheTest\testValues().
ilGlobalCache::getServiceType | ( | ) |
Definition at line 419 of file class.ilGlobalCache.php.
References $service_type.
Referenced by __construct(), and get().
|
static |
Definition at line 424 of file class.ilGlobalCache.php.
References ILIAS\LTI\ToolProvider\$settings.
ilGlobalCache::isActive | ( | ) |
Definition at line 265 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 301 of file class.ilGlobalCache.php.
ilGlobalCache::isInstallable | ( | ) |
Definition at line 296 of file class.ilGlobalCache.php.
ilGlobalCache::isValid | ( | string | $key | ) |
Definition at line 291 of file class.ilGlobalCache.php.
|
static |
Definition at line 166 of file class.ilGlobalCache.php.
References $DIC, and ILIAS\LTI\ToolProvider\getSettings().
Referenced by HTML_Template_IT\init().
|
static |
Definition at line 239 of file class.ilGlobalCache.php.
Referenced by ilGlobalCacheSettings\__toString().
|
static |
Definition at line 251 of file class.ilGlobalCache.php.
Referenced by ilGlobalCacheMetricsCollectedObjective\collectFrom().
ilGlobalCache::set | ( | string | $key, |
$value, | |||
int | $ttl = null |
||
) |
mixed | $value |
RuntimeException |
Definition at line 327 of file class.ilGlobalCache.php.
References getComponent(), isActive(), and ilGlobalCacheSettings\LOG_LEVEL_CHATTY.
Referenced by ilCachedObjectDefinition\getInstance().
ilGlobalCache::setActive | ( | bool | $active | ) |
Definition at line 404 of file class.ilGlobalCache.php.
References $active.
Referenced by __construct().
|
static |
Definition at line 439 of file class.ilGlobalCache.php.
References $active_components.
|
static |
Definition at line 449 of file class.ilGlobalCache.php.
References $available_components.
ilGlobalCache::setComponent | ( | string | $component | ) |
Definition at line 394 of file class.ilGlobalCache.php.
References $component.
Referenced by __construct().
ilGlobalCache::setServiceType | ( | int | $service_type | ) |
Definition at line 414 of file class.ilGlobalCache.php.
References $service_type.
Referenced by __construct().
|
static |
Definition at line 429 of file class.ilGlobalCache.php.
References $settings, and ILIAS\LTI\ToolProvider\$settings.
|
static |
Definition at line 120 of file class.ilGlobalCache.php.
References ilGlobalCacheSettings\getActivatedComponents(), and ILIAS\LTI\ToolProvider\setSettings().
Referenced by ilInitialisation\initClientIniFile(), ilServicesGlobalCacheTest\testService(), and ilServicesGlobalCacheTest\testValues().
|
protected |
Definition at line 116 of file class.ilGlobalCache.php.
Referenced by getActive(), and setActive().
|
staticprotected |
Definition at line 263 of file class.ilGlobalCache.php.
|
staticprotected |
Definition at line 100 of file class.ilGlobalCache.php.
Referenced by setActiveComponents().
|
staticprotected |
Definition at line 101 of file class.ilGlobalCache.php.
Referenced by setAvailableComponents().
|
staticprotected |
Definition at line 95 of file class.ilGlobalCache.php.
|
protected |
Definition at line 115 of file class.ilGlobalCache.php.
Referenced by getComponent(), getInstance(), and setComponent().
|
protected |
Definition at line 114 of file class.ilGlobalCache.php.
|
staticprotected |
Definition at line 113 of file class.ilGlobalCache.php.
|
protected |
Definition at line 117 of file class.ilGlobalCache.php.
Referenced by getInstance(), getServiceType(), and setServiceType().
|
staticprotected |
Definition at line 118 of file class.ilGlobalCache.php.
Referenced by setSettings().
|
staticprotected |
Definition at line 111 of file class.ilGlobalCache.php.
|
staticprotected |
Definition at line 90 of file class.ilGlobalCache.php.
Referenced by getAllInstallableTypes(), and getAllTypes().
|
staticprotected |
Definition at line 112 of file class.ilGlobalCache.php.
const ilGlobalCache::ACTIVE = true |
Definition at line 33 of file class.ilGlobalCache.php.
const ilGlobalCache::COMP_CLNG = 'clng' |
Definition at line 53 of file class.ilGlobalCache.php.
Referenced by ilCachedLanguage\__construct().
const ilGlobalCache::COMP_EVENTS = 'events' |
Definition at line 77 of file class.ilGlobalCache.php.
Referenced by ilAppEventHandler\initListeners().
const ilGlobalCache::COMP_GLOBAL_SCREEN = 'global_screen' |
Definition at line 89 of file class.ilGlobalCache.php.
Referenced by arConnectorCache\__construct(), ilMMItemRepository\__construct(), ilMMItemStorage\getCache(), ilMMTypeActionStorage\getCache(), ilMMItemTranslationStorage\getCache(), and ilMMCustomItemStorage\getCache().
const ilGlobalCache::COMP_ILCTRL = 'ilctrl' |
Definition at line 65 of file class.ilGlobalCache.php.
const ilGlobalCache::COMP_OBJ_DEF = 'obj_def' |
Definition at line 57 of file class.ilGlobalCache.php.
Referenced by ilCachedObjectDefinition\__construct(), ilCachedObjectDefinition\__destruct(), ilCachedObjectDefinition\flush(), ilCachedObjectDefinition\getInstance(), and ilObjectDefinition\readDefinitionData().
const ilGlobalCache::COMP_PLUGINS = 'plugins' |
Definition at line 69 of file class.ilGlobalCache.php.
const ilGlobalCache::COMP_RBAC_UA = 'rbac_ua' |
Definition at line 73 of file class.ilGlobalCache.php.
const ilGlobalCache::COMP_TEMPLATE = 'tpl' |
Definition at line 61 of file class.ilGlobalCache.php.
Referenced by HTML_Template_IT\getFile().
const ilGlobalCache::COMP_TPL_BLOCKS = 'tpl_blocks' |
Definition at line 81 of file class.ilGlobalCache.php.
Referenced by HTML_Template_IT\init().
const ilGlobalCache::COMP_TPL_VARIABLES = 'tpl_variables' |
Definition at line 85 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 29 of file class.ilGlobalCache.php.
const ilGlobalCache::TYPE_APC = 3 |
Definition at line 45 of file class.ilGlobalCache.php.
Referenced by ilGlobalCacheSetupAgent\getArrayToConfigTransformation(), and ILIAS\Tests\GlobalCache\Setup\ilGlobalCacheSetupAgentTest\testGetArrayToConfigTransformationWithDataServices().
const ilGlobalCache::TYPE_FALLBACK = self::TYPE_STATIC |
Definition at line 49 of file class.ilGlobalCache.php.
const ilGlobalCache::TYPE_MEMCACHED = 2 |
const ilGlobalCache::TYPE_STATIC = 0 |