Elgg
Version 4.3
|
Volatile cache for entities. More...
Public Member Functions | |
__construct (ElggSession $session, ElggCache $cache) | |
Constructor. More... | |
load ($guid) | |
Retrieve a entity from the cache. More... | |
save (ElggEntity $entity) | |
Cache an entity. More... | |
delete ($guid) | |
Invalidate this class's entry in the cache. More... | |
clear () | |
Clear the entity cache. More... | |
Public Attributes | |
const | MAX_SIZE = 256 |
Volatile cache for entities.
Definition at line 14 of file EntityCache.php.
Elgg\Cache\EntityCache::__construct | ( | ElggSession | $session, |
ElggCache | $cache | ||
) |
Constructor.
ElggSession | $session | Session |
ElggCache | $cache | Cache |
Definition at line 39 of file EntityCache.php.
Elgg\Cache\EntityCache::clear | ( | ) |
Elgg\Cache\EntityCache::delete | ( | $guid | ) |
Invalidate this class's entry in the cache.
int | $guid | The entity guid |
Definition at line 83 of file EntityCache.php.
Elgg\Cache\EntityCache::load | ( | $guid | ) |
Retrieve a entity from the cache.
int | $guid | The GUID |
Definition at line 51 of file EntityCache.php.
Elgg\Cache\EntityCache::save | ( | ElggEntity | $entity | ) |
Cache an entity.
ElggEntity | $entity | Entity to cache |
Definition at line 62 of file EntityCache.php.
const Elgg\Cache\EntityCache::MAX_SIZE = 256 |
Definition at line 16 of file EntityCache.php.