ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Config.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Cache;
22
25
29class Config
30{
31 public const ALL = '*';
32 public const APCU = 'apc';
33 public const PHPSTATIC = 'static';
34 public const MEMCACHED = 'memcached';
35 protected int $default_ttl = 300;
36
37 public function __construct(
38 protected string $adaptor_name,
39 protected bool $activated = false,
40 protected array $container_keys = [],
41 protected ?NodeRepository $nodes = null
42 ) {
43 if ($this->nodes === null) {
44 $this->nodes = new NullNodeRepository();
45 }
46 }
47
48 public function getAdaptorName(): string
49 {
50 return $this->adaptor_name;
51 }
52
53 public function getNodes(): array
54 {
55 return $this->nodes->getNodes();
56 }
57
58 public function getActivatedContainerKeys(): array
59 {
60 return $this->container_keys;
61 }
62
63 public function getDefaultTTL(): int
64 {
65 return $this->default_ttl;
66 }
67
68 public function isActivated(): bool
69 {
70 return $this->activated;
71 }
72}
getActivatedContainerKeys()
Definition: Config.php:58
__construct(protected string $adaptor_name, protected bool $activated=false, protected array $container_keys=[], protected ?NodeRepository $nodes=null)
Definition: Config.php:37
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...