ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ILIAS\Cache\Config Class Reference
+ Collaboration diagram for ILIAS\Cache\Config:

Public Member Functions

 __construct (protected string $adaptor_name, protected bool $activated=false, protected array $container_keys=[], protected ?NodeRepository $nodes=null)
 
 getAdaptorName ()
 
 getNodes ()
 
 getActivatedContainerKeys ()
 
 getDefaultTTL ()
 
 isActivated ()
 

Data Fields

const ALL = '*'
 
const APCU = 'apc'
 
const PHPSTATIC = 'static'
 
const MEMCACHED = 'memcached'
 

Protected Attributes

int $default_ttl = 300
 

Detailed Description

Author
Fabian Schmid fabia.nosp@m.n@sr.nosp@m..solu.nosp@m.tion.nosp@m.s

Definition at line 30 of file Config.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Cache\Config::__construct ( protected string  $adaptor_name,
protected bool  $activated = false,
protected array  $container_keys = [],
protected ?NodeRepository  $nodes = null 
)

Definition at line 38 of file Config.php.

43  {
44  if ($this->nodes === null) {
45  $this->nodes = new NullNodeRepository();
46  }
47  }

Member Function Documentation

◆ getActivatedContainerKeys()

ILIAS\Cache\Config::getActivatedContainerKeys ( )

Definition at line 59 of file Config.php.

59  : array
60  {
61  return $this->container_keys;
62  }

◆ getAdaptorName()

ILIAS\Cache\Config::getAdaptorName ( )

Definition at line 49 of file Config.php.

Referenced by ILIAS\Cache\Adaptor\Factory\getWithConfig().

49  : string
50  {
51  return $this->adaptor_name;
52  }
+ Here is the caller graph for this function:

◆ getDefaultTTL()

ILIAS\Cache\Config::getDefaultTTL ( )

Definition at line 64 of file Config.php.

References ILIAS\Cache\Config\$default_ttl.

64  : int
65  {
66  return $this->default_ttl;
67  }

◆ getNodes()

ILIAS\Cache\Config::getNodes ( )

Definition at line 54 of file Config.php.

Referenced by ILIAS\Cache\Adaptor\Memcached\__construct(), and ILIAS\Cache\Adaptor\Memcached\initServer().

54  : array
55  {
56  return $this->nodes->getNodes();
57  }
+ Here is the caller graph for this function:

◆ isActivated()

ILIAS\Cache\Config::isActivated ( )

Definition at line 69 of file Config.php.

69  : bool
70  {
71  return $this->activated;
72  }

Field Documentation

◆ $default_ttl

int ILIAS\Cache\Config::$default_ttl = 300
protected

Definition at line 36 of file Config.php.

Referenced by ILIAS\Cache\Config\getDefaultTTL().

◆ ALL

const ILIAS\Cache\Config::ALL = '*'

Definition at line 32 of file Config.php.

Referenced by ILIAS\Cache\Services\new().

◆ APCU

◆ MEMCACHED

◆ PHPSTATIC


The documentation for this class was generated from the following file: