40 $this->session = $session;
41 $this->cache = $cache;
52 return $this->cache->load((
int)
$guid);
67 if ($this->size > self::MAX_SIZE) {
72 $this->cache->save($entity->guid, $entity);
93 $this->cache->delete(
$guid);
103 $this->cache->clear();
__construct(ElggSession $session, ElggCache $cache)
Constructor.
load($guid)
Retrieve a entity from the cache.
save(ElggEntity $entity)
Cache an entity.
Volatile cache for entities.
clear()
Clear the entity cache.
isCacheable()
Is entity cacheable in the runtime cache.
$guid
Reset an ElggUpgrade.