Elgg  Version 6.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 (protected 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...
 
 invalidate ()
 Invalidate all caches. More...
 
 purge ()
 Purge all 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

array $caches = []
 

Detailed Description

A collection of composite caches.

Definition at line 10 of file CacheCollection.php.

Constructor & Destructor Documentation

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

Constructor.

Parameters
Config$configElgg config

Definition at line 22 of file CacheCollection.php.

Member Function Documentation

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

{}

Definition at line 28 of file CacheCollection.php.

Elgg\Cache\CacheCollection::clear ( )

Clear all persistent caches.

Returns
void

Definition at line 62 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 95 of file CacheCollection.php.

Elgg\Cache\CacheCollection::enable ( )

Enable all persistent caches.

Returns
void

Definition at line 106 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 49 of file CacheCollection.php.

Elgg\Cache\CacheCollection::invalidate ( )

Invalidate all caches.

Returns
void

Definition at line 73 of file CacheCollection.php.

Elgg\Cache\CacheCollection::purge ( )

Purge all caches.

Returns
void

Definition at line 84 of file CacheCollection.php.

Member Data Documentation

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

Definition at line 15 of file CacheCollection.php.


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