ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ 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
org\bovigo\vfs\Issue104TestCase
;
24
use
ILIAS\Cache\Nodes\NodeRepository
;
25
use
ILIAS\Cache\Nodes\NullNodeRepository
;
26
30
class
Config
31
{
32
public
const
ALL
=
'*'
;
33
public
const
APCU
=
'apc'
;
34
public
const
PHPSTATIC
=
'static'
;
35
public
const
MEMCACHED
=
'memcached'
;
36
protected
int
$default_ttl
= 300;
37
38
public
function
__construct
(
39
protected
string
$adaptor_name,
40
protected
bool
$activated =
false
,
41
protected
array $container_keys = [],
42
protected
?
NodeRepository
$nodes = null
43
) {
44
if
($this->nodes === null) {
45
$this->nodes =
new
NullNodeRepository
();
46
}
47
}
48
49
public
function
getAdaptorName
(): string
50
{
51
return
$this->adaptor_name;
52
}
53
54
public
function
getNodes
(): array
55
{
56
return
$this->nodes->getNodes();
57
}
58
59
public
function
getActivatedContainerKeys
(): array
60
{
61
return
$this->container_keys;
62
}
63
64
public
function
getDefaultTTL
():
int
65
{
66
return
$this->default_ttl
;
67
}
68
69
public
function
isActivated
(): bool
70
{
71
return
$this->activated;
72
}
73
}
ILIAS\Cache\Config\$default_ttl
int $default_ttl
Definition:
Config.php:36
ILIAS\Cache\Config\__construct
__construct(protected string $adaptor_name, protected bool $activated=false, protected array $container_keys=[], protected ?NodeRepository $nodes=null)
Definition:
Config.php:38
Issue104TestCase
ILIAS\Cache\Config\getActivatedContainerKeys
getActivatedContainerKeys()
Definition:
Config.php:59
ILIAS\Cache\Config\getDefaultTTL
getDefaultTTL()
Definition:
Config.php:64
NullNodeRepository
ILIAS\Cache\Config\isActivated
isActivated()
Definition:
Config.php:69
ILIAS\Cache
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS\Cache\Config\getNodes
getNodes()
Definition:
Config.php:54
ILIAS\Cache\Config\getAdaptorName
getAdaptorName()
Definition:
Config.php:49
ILIAS\Cache\Config
Definition:
Config.php:30
NodeRepository
ILIAS\Cache\Config\ALL
const ALL
Definition:
Config.php:32
ILIAS\Cache\Config\MEMCACHED
const MEMCACHED
Definition:
Config.php:35
ILIAS\Cache\Config\APCU
const APCU
Definition:
Config.php:33
ILIAS\Cache\Nodes\NullNodeRepository
Definition:
NullNodeRepository.php:26
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ILIAS\Cache\Nodes\NodeRepository
Definition:
NodeRepository.php:26
ILIAS\Cache\Config\PHPSTATIC
const PHPSTATIC
Definition:
Config.php:34
components
ILIAS
Cache
src
Config.php
Generated on Wed Sep 10 2025 15:15:08 for ILIAS by
1.8.13 (using
Doxyfile
)