ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
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 29 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 37 of file Config.php.

References null.

42  {
43  if ($this->nodes === null) {
44  $this->nodes = new NullNodeRepository();
45  }
46  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

Member Function Documentation

◆ getActivatedContainerKeys()

ILIAS\Cache\Config::getActivatedContainerKeys ( )

Definition at line 58 of file Config.php.

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

◆ getAdaptorName()

ILIAS\Cache\Config::getAdaptorName ( )

Definition at line 48 of file Config.php.

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

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

◆ getDefaultTTL()

ILIAS\Cache\Config::getDefaultTTL ( )

Definition at line 63 of file Config.php.

References ILIAS\Cache\Config\$default_ttl.

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

◆ getNodes()

ILIAS\Cache\Config::getNodes ( )

Definition at line 53 of file Config.php.

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

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

◆ isActivated()

ILIAS\Cache\Config::isActivated ( )

Definition at line 68 of file Config.php.

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

Field Documentation

◆ $default_ttl

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

Definition at line 35 of file Config.php.

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

◆ ALL

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

Definition at line 31 of file Config.php.

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

◆ APCU

◆ MEMCACHED

◆ PHPSTATIC


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