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

Volatile cache for select queries. More...

Inheritance diagram for Elgg\Cache\QueryCache:
Elgg\Cache\CacheService

Public Member Functions

 __construct (protected Config $config)
 Constructor. More...
 
 purge ()
 {} More...
 
 invalidate ()
 {} More...
 
 clear ()
 {} More...
 
 save (string $key, mixed $data, int|\DateTime $expire_after=null)
 {} More...
 
 load (string $key)
 {} More...
 
 delete (string $key)
 {} More...
 
- Public Member Functions inherited from Elgg\Cache\CacheService
 purge ()
 Purges the caches. More...
 
 invalidate ()
 Invalidates the caches. More...
 
 clear ()
 Clears the caches. More...
 
 save (string $key, mixed $data, int|\DateTime $expire_after=null)
 Saves data in the cache. More...
 
 load (string $key)
 Retrieve the contents of a cached item. More...
 
 delete (string $key)
 Deletes the contents of a cached item. More...
 
 isEnabled ()
 Is the cache enabled. More...
 
 enable ()
 Enables the cache. More...
 
 disable ()
 Disables the cache. More...
 

Protected Attributes

int $query_cache_limit = 50
 
array $keys = []
 
- Protected Attributes inherited from Elgg\Cache\CacheService
CompositeCache $cache
 
bool $enabled = true
 

Detailed Description

Volatile cache for select queries.

Definition at line 12 of file QueryCache.php.

Constructor & Destructor Documentation

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

Constructor.

Parameters
Config$configElgg config

Definition at line 23 of file QueryCache.php.

Member Function Documentation

Elgg\Cache\QueryCache::clear ( )

{}

Definition at line 55 of file QueryCache.php.

Elgg\Cache\QueryCache::delete ( string  $key)

{}

Definition at line 93 of file QueryCache.php.

Elgg\Cache\QueryCache::invalidate ( )

{}

Definition at line 46 of file QueryCache.php.

Elgg\Cache\QueryCache::load ( string  $key)

{}

Definition at line 80 of file QueryCache.php.

Elgg\Cache\QueryCache::purge ( )

{}

Definition at line 37 of file QueryCache.php.

Elgg\Cache\QueryCache::save ( string  $key,
mixed  $data,
int|\DateTime  $expire_after = null 
)

{}

Definition at line 64 of file QueryCache.php.

Member Data Documentation

array Elgg\Cache\QueryCache::$keys = []
protected

Definition at line 16 of file QueryCache.php.

int Elgg\Cache\QueryCache::$query_cache_limit = 50
protected

Definition at line 14 of file QueryCache.php.


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