Elgg  Version 3.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Elgg\Cache\CacheCollection Class Reference

A collection of composite caches. More...

Inheritance diagram for Elgg\Cache\CacheCollection:
Elgg\Cache\DataCache Elgg\Cache\SessionCache

Public Member Functions

 __construct (Config $config)
 Constructor. More...
 
 __get ($name)
 {} More...
 
 get ($namespace)
 Returns an instance of composite cache, or creates one. More...
 
 clear ()
 Clear all persistent caches. More...
 
 disable ()
 Disable all persistent caches. More...
 
 enable ()
 Enable all persistent caches. More...
 

Protected Member Functions

 create ($namespace)
 Create a new cache under a namespace. More...
 

Protected Attributes

 $caches = []
 
 $config
 

Detailed Description

A collection of composite caches.

Definition at line 11 of file CacheCollection.php.

Constructor & Destructor Documentation

Elgg\Cache\CacheCollection::__construct ( Config  $config)

Constructor.

Parameters
Config$configElgg config

Definition at line 28 of file CacheCollection.php.

Member Function Documentation

Elgg\Cache\CacheCollection::__get (   $name)

{}

Definition at line 35 of file CacheCollection.php.

Elgg\Cache\CacheCollection::clear ( )

Clear all persistent caches.

Returns
void

Definition at line 68 of file CacheCollection.php.

Elgg\Cache\CacheCollection::create (   $namespace)
abstractprotected

Create a new cache under a namespace.

Parameters
string$namespaceNamespace
Returns
CompositeCache
Elgg\Cache\CacheCollection::disable ( )

Disable all persistent caches.

Returns
void

Definition at line 78 of file CacheCollection.php.

Elgg\Cache\CacheCollection::enable ( )

Enable all persistent caches.

Returns
void

Definition at line 88 of file CacheCollection.php.

Elgg\Cache\CacheCollection::get (   $namespace)

Returns an instance of composite cache, or creates one.

Parameters
string$namespaceCache namespace
Returns
CompositeCache

Definition at line 56 of file CacheCollection.php.

Member Data Documentation

Elgg\Cache\CacheCollection::$caches = []
protected

Definition at line 16 of file CacheCollection.php.

Elgg\Cache\CacheCollection::$config
protected

Definition at line 21 of file CacheCollection.php.


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