33 $db = $environment->getResource(Setup\Environment::RESOURCE_DATABASE);
34 $client_ini = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI);
36 if (!$client_ini || !$db) {
45 $GLOBALS[
"DIC"] =
new DI\Container();
54 $storage->storeConfigText(
57 "The backend that is used for the ILIAS cache." 59 $storage->storeConfigBool(
69 $server_collection = [];
71 $active =
new Setup\Metrics\Metric(
72 Setup\Metrics\Metric::STABILITY_CONFIG,
73 Setup\Metrics\Metric::TYPE_BOOL,
76 $host =
new Setup\Metrics\Metric(
77 Setup\Metrics\Metric::STABILITY_CONFIG,
78 Setup\Metrics\Metric::TYPE_TEXT,
81 $port =
new Setup\Metrics\Metric(
82 Setup\Metrics\Metric::STABILITY_CONFIG,
83 Setup\Metrics\Metric::TYPE_GAUGE,
86 $weight =
new Setup\Metrics\Metric(
87 Setup\Metrics\Metric::STABILITY_CONFIG,
88 Setup\Metrics\Metric::TYPE_GAUGE,
92 $server_collection[] =
new Setup\Metrics\Metric(
93 Setup\Metrics\Metric::STABILITY_CONFIG,
94 Setup\Metrics\Metric::TYPE_COLLECTION,
101 "Configured memcached node." 105 $nodes =
new Setup\Metrics\Metric(
106 Setup\Metrics\Metric::STABILITY_CONFIG,
107 Setup\Metrics\Metric::TYPE_COLLECTION,
109 "Collection of configured memcached nodes." 111 $storage->store(
"memcached_nodes", $nodes);
114 $component_activation = [];
116 $component_activation[$component] =
new Setup\Metrics\Metric(
117 Setup\Metrics\Metric::STABILITY_CONFIG,
118 Setup\Metrics\Metric::TYPE_BOOL,
119 $settings->isComponentActivated($component)
122 $component_activation =
new Setup\Metrics\Metric(
123 Setup\Metrics\Metric::STABILITY_CONFIG,
124 Setup\Metrics\Metric::TYPE_COLLECTION,
125 $component_activation,
126 "Which components are activated to use caching?" 130 $component_activation
Class ilGlobalCacheSettings.
static getAvailableComponents()
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
static lookupServiceConfigName(int $service_type)