Elgg
Version 6.2
|
Volatile cache for select queries. More...
Public Member Functions | ||||||||||
__construct (protected Config $config) | ||||||||||
Constructor. More... | ||||||||||
purge () | ||||||||||
{Purges the caches.
| ||||||||||
invalidate () | ||||||||||
{Invalidates the caches.
| ||||||||||
clear () | ||||||||||
{Clears the caches.
| ||||||||||
save (string $key, mixed $data, null|int|\DateTime $expire_after=null) | ||||||||||
{Saves data in the cache.
| ||||||||||
load (string $key) | ||||||||||
{Retrieve the contents of a cached item.
| ||||||||||
delete (string $key) | ||||||||||
{Deletes the contents of a cached item.
| ||||||||||
![]() | ||||||||||
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 = [] |
![]() | |
CompositeCache | $cache |
bool | $enabled = true |
Volatile cache for select queries.
Definition at line 12 of file QueryCache.php.
Elgg\Cache\QueryCache::__construct | ( | protected Config | $config | ) |
Elgg\Cache\QueryCache::clear | ( | ) |
{Clears the caches.
Reimplemented from Elgg\Cache\CacheService.
Definition at line 55 of file QueryCache.php.
Elgg\Cache\QueryCache::delete | ( | string | $key | ) |
{Deletes the contents of a cached item.
string | $key | Identifier of the cached item |
Reimplemented from Elgg\Cache\CacheService.
Definition at line 93 of file QueryCache.php.
Elgg\Cache\QueryCache::invalidate | ( | ) |
{Invalidates the caches.
Reimplemented from Elgg\Cache\CacheService.
Definition at line 46 of file QueryCache.php.
Elgg\Cache\QueryCache::load | ( | string | $key | ) |
{Retrieve the contents of a cached item.
string | $key | Identifier of the cached item |
Reimplemented from Elgg\Cache\CacheService.
Definition at line 80 of file QueryCache.php.
Elgg\Cache\QueryCache::purge | ( | ) |
{Purges the caches.
Reimplemented from Elgg\Cache\CacheService.
Definition at line 37 of file QueryCache.php.
Elgg\Cache\QueryCache::save | ( | string | $key, |
mixed | $data, | ||
null|int|\DateTime | $expire_after = null |
||
) |
{Saves data in the cache.
string | $key | Identifier of the cached item |
mixed | $data | The data to be saved |
int | \DateTime | null | $expire_after | Number of seconds to expire the cache after |
Reimplemented from Elgg\Cache\CacheService.
Definition at line 64 of file QueryCache.php.
|
protected |
Definition at line 16 of file QueryCache.php.
|
protected |
Definition at line 14 of file QueryCache.php.