Method |
Description |
|
__construct ( ElggSession $session ) |
Constructor |
|
clear ( integer $entity_guid ) : void |
Forget about all metadata for an entity. For safety this affects all access states. |
|
clearAll ( ) : void |
Clear entire cache |
|
filterMetadataHeavyEntities ( array $guids, integer $limit = 1024000 ) : array |
Filter out entities whose concatenated metadata values (INTs casted as string)
exceed a threshold in characters. This could be used to avoid overpopulating the
cache if RAM usage becomes an issue. |
|
getSingle ( integer $entity_guid, string $name ) : array | string | integer | null |
Get the metadata for a particular name. Note, this can return an array of values. |
|
inject ( integer $entity_guid, array $values ) : void |
Set the visible metadata for an entity in the cache |
|
invalidateByOptions ( array $options ) : void |
Invalidate based on options passed to the global *_metadata functions |
|
isLoaded ( integer $entity_guid ) : boolean |
If true, getSingle() will return an accurate values from the DB |
|
populateFromEntities ( integer | array $guids ) : void |
Populate the cache from a set of entities |
|