Elgg  Version 6.1
Public Member Functions | List of all members
Elgg\Cache\MetadataCache Class Reference

In memory cache of known metadata values stored by entity. More...

Inheritance diagram for Elgg\Cache\MetadataCache:
Elgg\Cache\CacheService

Public Member Functions

 __construct (protected Config $config)
 Constructor. More...
 
 populateFromEntities (...$guids)
 Populate the cache from a set of entities. More...
 
- Public Member Functions inherited from Elgg\Cache\CacheService
 purge ()
 Purges the caches. More...
 
 invalidate ()
 Invalidates the caches. More...
 
 clear ()
 Clears the caches. More...
 
 save (string $key, mixed $data, int|\DateTime $expire_after=null)
 Saves data in the cache. More...
 
 load (string $key)
 Retrieve the contents of a cached item. More...
 
 delete (string $key)
 Deletes the contents of a cached item. More...
 
 isEnabled ()
 Is the cache enabled. More...
 
 enable ()
 Enables the cache. More...
 
 disable ()
 Disables the cache. More...
 

Additional Inherited Members

- Protected Attributes inherited from Elgg\Cache\CacheService
CompositeCache $cache
 
bool $enabled = true
 

Detailed Description

In memory cache of known metadata values stored by entity.

Definition at line 14 of file MetadataCache.php.

Constructor & Destructor Documentation

Elgg\Cache\MetadataCache::__construct ( protected Config  $config)

Constructor.

Parameters
Config$configElgg config

Definition at line 21 of file MetadataCache.php.

Member Function Documentation

Elgg\Cache\MetadataCache::populateFromEntities (   $guids)

Populate the cache from a set of entities.

Parameters
mixed...$guids Array of entities or GUIDs
Returns
array|null [guid => [metadata]]

Definition at line 33 of file MetadataCache.php.


The documentation for this class was generated from the following file: