Elgg
Version master
|
Public Member Functions | |
purge () | |
Purges the caches. More... | |
invalidate () | |
Invalidates the caches. More... | |
clear () | |
Clears the caches. More... | |
save (string $key, mixed $data, null|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 | |
CompositeCache | $cache |
bool | $enabled = true |
Cache Service.
Definition at line 11 of file CacheService.php.
Elgg\Cache\CacheService::clear | ( | ) |
Clears the caches.
Reimplemented in Elgg\Cache\QueryCache.
Definition at line 40 of file CacheService.php.
Elgg\Cache\CacheService::delete | ( | string | $key | ) |
Deletes the contents of a cached item.
string | $key | Identifier of the cached item |
Reimplemented in Elgg\Cache\QueryCache.
Definition at line 75 of file CacheService.php.
Elgg\Cache\CacheService::disable | ( | ) |
Elgg\Cache\CacheService::enable | ( | ) |
Elgg\Cache\CacheService::invalidate | ( | ) |
Invalidates the caches.
Reimplemented in Elgg\Cache\QueryCache.
Definition at line 31 of file CacheService.php.
Elgg\Cache\CacheService::isEnabled | ( | ) |
Elgg\Cache\CacheService::load | ( | string | $key | ) |
Retrieve the contents of a cached item.
string | $key | Identifier of the cached item |
Reimplemented in Elgg\Cache\QueryCache.
Definition at line 64 of file CacheService.php.
Elgg\Cache\CacheService::purge | ( | ) |
Purges the caches.
Reimplemented in Elgg\Cache\QueryCache.
Definition at line 22 of file CacheService.php.
Elgg\Cache\CacheService::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 in Elgg\Cache\QueryCache.
Definition at line 53 of file CacheService.php.
|
protected |
Definition at line 13 of file CacheService.php.
|
protected |
Definition at line 15 of file CacheService.php.