Elgg
Version 4.3
|
In memory cache of known private settings values stored by entity. More...
Public Member Functions | |
__construct (ElggCache $cache) | |
Constructor. More... | |
load ($key) | |
Load data from the cache using a given key. More... | |
save ($key, $data, $expire_after=null) | |
Save data in a cache. More... | |
populateFromEntities (...$guids) | |
Populate the cache from a set of entities. More... | |
Protected Attributes | |
$cache | |
In memory cache of known private settings values stored by entity.
Definition at line 14 of file PrivateSettingsCache.php.
Elgg\Cache\PrivateSettingsCache::__construct | ( | ElggCache | $cache | ) |
Constructor.
Definition at line 26 of file PrivateSettingsCache.php.
Elgg\Cache\PrivateSettingsCache::load | ( | $key | ) |
Load data from the cache using a given key.
string | $key | Name |
Definition at line 37 of file PrivateSettingsCache.php.
Elgg\Cache\PrivateSettingsCache::populateFromEntities | ( | $guids | ) |
Populate the cache from a set of entities.
int[] | ...$guids Array of or single GUIDs |
Definition at line 60 of file PrivateSettingsCache.php.
Elgg\Cache\PrivateSettingsCache::save | ( | $key, | |
$data, | |||
$expire_after = null |
|||
) |
Save data in a cache.
string | $key | Name |
mixed | $data | Value |
int | $expire_after | Number of seconds to expire the cache after |
Definition at line 50 of file PrivateSettingsCache.php.
|
protected |
Definition at line 19 of file PrivateSettingsCache.php.