Cache Service.
More...
Cache Service.
Definition at line 11 of file CacheService.php.
Elgg\Cache\CacheService::clear |
( |
| ) |
|
Elgg\Cache\CacheService::delete |
( |
string |
$key | ) |
|
Deletes the contents of a cached item.
- Parameters
-
string | $key | Identifier of the cached item |
- Returns
- bool
Definition at line 75 of file CacheService.php.
Elgg\Cache\CacheService::disable |
( |
| ) |
|
Elgg\Cache\CacheService::enable |
( |
| ) |
|
Elgg\Cache\CacheService::invalidate |
( |
| ) |
|
Elgg\Cache\CacheService::isEnabled |
( |
| ) |
|
Elgg\Cache\CacheService::load |
( |
string |
$key | ) |
|
Retrieve the contents of a cached item.
- Parameters
-
string | $key | Identifier of the cached item |
- Returns
- mixed null if key not found in cache
Definition at line 64 of file CacheService.php.
Elgg\Cache\CacheService::purge |
( |
| ) |
|
Elgg\Cache\CacheService::save |
( |
string |
$key, |
|
|
mixed |
$data, |
|
|
int|\DateTime |
$expire_after = null |
|
) |
| |
Saves data in the cache.
- Parameters
-
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 |
- Returns
- bool
Definition at line 53 of file CacheService.php.
bool Elgg\Cache\CacheService::$enabled = true |
|
protected |
The documentation for this class was generated from the following file: