Volatile cache for entities.
More...
Volatile cache for entities.
@access private
Definition at line 12 of file EntityCache.php.
◆ __construct()
◆ clear()
Elgg\Cache\EntityCache::clear |
( |
| ) |
|
◆ disableCachingForEntity()
Elgg\Cache\EntityCache::disableCachingForEntity |
( |
|
$guid | ) |
|
Remove this entity from the entity cache and make sure it is not re-added.
- Parameters
-
- Returns
- void
Definition at line 172 of file EntityCache.php.
◆ enableCachingForEntity()
Elgg\Cache\EntityCache::enableCachingForEntity |
( |
|
$guid | ) |
|
Allow this entity to be stored in the entity cache.
- Parameters
-
- Returns
- void
Definition at line 183 of file EntityCache.php.
◆ get()
Elgg\Cache\EntityCache::get |
( |
|
$guid | ) |
|
Retrieve a entity from the cache.
- Parameters
-
- Returns
- \ElggEntity|false false if entity not cached, or not fully loaded
Definition at line 62 of file EntityCache.php.
◆ getByUsername()
Elgg\Cache\EntityCache::getByUsername |
( |
|
$username | ) |
|
Returns cached user entity by username.
- Parameters
-
- Returns
- \ElggUser|false
Definition at line 80 of file EntityCache.php.
◆ remove()
Elgg\Cache\EntityCache::remove |
( |
|
$guid | ) |
|
Invalidate this class's entry in the cache.
- Parameters
-
- Returns
- void
Definition at line 128 of file EntityCache.php.
◆ set()
◆ MAX_SIZE
const Elgg\Cache\EntityCache::MAX_SIZE = 256 |
The documentation for this class was generated from the following file: