Elgg
Version 6.0
|
Volatile cache for entities. More...
Public Member Functions | |
__construct (protected BaseCache $cache) | |
Constructor. More... | |
load (int $guid) | |
Retrieve a entity from the cache. More... | |
save (\ElggEntity $entity) | |
Cache an entity. More... | |
delete (int $guid) | |
Invalidate this class's entry in the cache. More... | |
clear () | |
Clear the entity cache. More... | |
Volatile cache for entities.
Definition at line 10 of file EntityCache.php.
Elgg\Cache\EntityCache::__construct | ( | protected BaseCache | $cache | ) |
Elgg\Cache\EntityCache::clear | ( | ) |
Elgg\Cache\EntityCache::delete | ( | int | $guid | ) |
Invalidate this class's entry in the cache.
int | $guid | The entity guid |
Definition at line 53 of file EntityCache.php.
Elgg\Cache\EntityCache::load | ( | int | $guid | ) |
Retrieve a entity from the cache.
int | $guid | The GUID |
Definition at line 27 of file EntityCache.php.
Elgg\Cache\EntityCache::save | ( | \ElggEntity | $entity | ) |
Cache an entity.
\ElggEntity | $entity | Entity to cache |
Definition at line 38 of file EntityCache.php.