ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
Config.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Cache
;
22
23
use
ILIAS\Cache\Nodes\NodeRepository
;
24
use
ILIAS\Cache\Nodes\NullNodeRepository
;
25
29
class
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
}
ILIAS\Cache\Config
Definition:
Config.php:30
ILIAS\Cache\Config\ALL
const ALL
Definition:
Config.php:31
ILIAS\Cache\Config\$default_ttl
int $default_ttl
Definition:
Config.php:35
ILIAS\Cache\Config\getActivatedContainerKeys
getActivatedContainerKeys()
Definition:
Config.php:58
ILIAS\Cache\Config\getDefaultTTL
getDefaultTTL()
Definition:
Config.php:63
ILIAS\Cache\Config\isActivated
isActivated()
Definition:
Config.php:68
ILIAS\Cache\Config\__construct
__construct(protected string $adaptor_name, protected bool $activated=false, protected array $container_keys=[], protected ?NodeRepository $nodes=null)
Definition:
Config.php:37
ILIAS\Cache\Config\getNodes
getNodes()
Definition:
Config.php:53
ILIAS\Cache\Config\APCU
const APCU
Definition:
Config.php:32
ILIAS\Cache\Config\getAdaptorName
getAdaptorName()
Definition:
Config.php:48
ILIAS\Cache\Config\PHPSTATIC
const PHPSTATIC
Definition:
Config.php:33
ILIAS\Cache\Config\MEMCACHED
const MEMCACHED
Definition:
Config.php:34
ILIAS\Cache\Nodes\NullNodeRepository
Definition:
NullNodeRepository.php:27
ILIAS\Cache\Nodes\NodeRepository
Definition:
NodeRepository.php:27
ILIAS\Cache
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
components
ILIAS
Cache
src
Config.php
Generated on Sat Oct 18 2025 23:02:41 for ILIAS by
1.9.4 (using
Doxyfile
)