38 $db = $environment->
getResource(Environment::RESOURCE_DATABASE);
39 $client_ini = $environment->
getResource(Environment::RESOURCE_CLIENT_INI);
47 $service = $config->getAdaptorName();
51 "The backend that is used for the ILIAS cache." 55 $config->isActivated()
58 $servers = $config->getNodes();
63 $server_collection = [];
66 Metric::STABILITY_CONFIG,
71 Metric::STABILITY_CONFIG,
76 Metric::STABILITY_CONFIG,
81 $server_collection[] =
new Metric(
82 Metric::STABILITY_CONFIG,
83 Metric::TYPE_COLLECTION,
89 "Configured memcached node." 94 Metric::STABILITY_CONFIG,
95 Metric::TYPE_COLLECTION,
97 "Collection of configured memcached nodes." 99 $storage->
store(
"memcached_nodes", $nodes);
102 $component_activation = [];
103 foreach (ilGlobalCache::getAvailableComponents() as $component) {
104 $component_activation[$component] =
new Metric(
105 Metric::STABILITY_CONFIG,
107 $config->isComponentActivated($component)
110 $component_activation =
new Metric(
111 Metric::STABILITY_CONFIG,
112 Metric::TYPE_COLLECTION,
113 $component_activation,
114 "Which components are activated to use caching?" 118 $component_activation
storeConfigText(string $key, string $value, string $description=null)
store(string $key, Metric $metric)
Store some metric in the storage.
A metric is something we can measure about the system.
storeConfigBool(string $key, bool $value, string $description=null)
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.