19declare(strict_types=1);
54 !isset(
$data[
"components"]) ||
55 !
$data[
"components"] ||
56 !isset(
$data[
"service"]) ||
57 $data[
"service"] ===
"none" ||
59 $data[
"service"] ===
"memcached" &&
60 (!isset(
$data[
"memcached_nodes"]) || count(
$data[
"memcached_nodes"]) === 0)
66 switch (
$data[
"service"]) {
72 array_walk(
$data[
"memcached_nodes"],
function (array $node) use (
$settings):
void {
81 throw new \InvalidArgumentException(
82 sprintf(
"Unknown caching service: '%s'",
$data[
"service"])
86 if (
$data[
"components"] ===
"all") {
89 foreach (
$data[
"components"] as $cmp => $active) {
105 $m->setHost((
string) $node[
"host"]);
106 $m->setPort((
int) $node[
"port"]);
107 $m->setWeight((
int) $node[
"weight"]);
162 'flushes all GlobalCaches.',
A non-objective, nothing to do to achieve it...
Signals that some goal won't be achievable by actions of the system ever.
Class ilGlobalCacheSettings.
getUpdateObjective(Setup\Config $config=null)
getStatusObjective(Setup\Metrics\Storage $storage)
getInstallObjective(Setup\Config $config=null)
getMigrations()
@inheritDoc
getBuildArtifactObjective()
__construct(Refinery\Factory $refinery)
getArrayToConfigTransformation()
ILIAS Refinery Factory $refinery
getMemcachedServer(array $node)
getNamedObjectives(?Config $config=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
A agent is some component that performs part of the setup process.
A configuration for the setup.
An objective is a desired state of the system that is supposed to be created by the setup.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...