Elgg
Version 5.0
|
Public Member Functions | |
__construct (BaseCache $cache, Config $config) | |
Constructor. More... | |
reset () | |
Reset the system cache by deleting the caches. More... | |
save (string $type, $data, int $expire_after=null) | |
Saves a system cache. More... | |
load (string $type) | |
Retrieve the contents of a system cache. More... | |
delete (string $type) | |
Deletes the contents of a system cache. More... | |
isEnabled () | |
Is system cache enabled. More... | |
enable () | |
Enables the system disk cache. More... | |
disable () | |
Disables the system disk cache. More... | |
init () | |
Initializes the system cache. More... | |
Protected Attributes | |
$config | |
System Cache.
Definition at line 14 of file SystemCache.php.
Elgg\Cache\SystemCache::delete | ( | string | $type | ) |
Deletes the contents of a system cache.
string | $type | The type of cache to delete |
Definition at line 84 of file SystemCache.php.
Elgg\Cache\SystemCache::disable | ( | ) |
Disables the system disk cache.
Uses the 'system_cache_enabled' config with a boolean value. Resets the system cache.
Definition at line 118 of file SystemCache.php.
Elgg\Cache\SystemCache::enable | ( | ) |
Enables the system disk cache.
Uses the 'system_cache_enabled' config with a boolean value. Resets the system cache.
Definition at line 105 of file SystemCache.php.
Elgg\Cache\SystemCache::init | ( | ) |
Elgg\Cache\SystemCache::isEnabled | ( | ) |
Elgg\Cache\SystemCache::load | ( | string | $type | ) |
Retrieve the contents of a system cache.
string | $type | The type of cache to load |
Definition at line 67 of file SystemCache.php.
Elgg\Cache\SystemCache::reset | ( | ) |
Reset the system cache by deleting the caches.
Definition at line 39 of file SystemCache.php.
Elgg\Cache\SystemCache::save | ( | string | $type, |
$data, | |||
int | $expire_after = null |
||
) |
Saves a system cache.
string | $type | The type or identifier of the cache |
mixed | $data | The data to be saved |
int | $expire_after | Number of seconds to expire the cache after |
Definition at line 52 of file SystemCache.php.
|
protected |
Definition at line 21 of file SystemCache.php.