|
| load_for_cache ($key) |
| Loads the data for the key provided ready formatted for caching.
|
|
| load_for_cache_versioned ($key, int $requiredversion, &$actualversion) |
| Loads the data for the key provided ready formatted for caching.
|
|
| load_many_for_cache (array $keys) |
| Loads several keys for the cache.
|
|
◆ get_instance_for_cache()
static core_cache\data_source_interface::get_instance_for_cache |
( |
definition | $definition | ) |
|
|
staticinherited |
◆ load_for_cache()
core_cache\data_source_interface::load_for_cache |
( |
| $key | ) |
|
|
inherited |
◆ load_for_cache_versioned()
core_cache\versionable_data_source_interface::load_for_cache_versioned |
( |
| $key, |
|
|
int | $requiredversion, |
|
|
& | $actualversion ) |
Loads the data for the key provided ready formatted for caching.
If there is no data for that key, or if the data for the required key has an older version than the specified $requiredversion, then this returns null.
If there is data then $actualversion should be set to the actual version number retrieved (may be the same as $requiredversion or newer).
- Parameters
-
string | int | $key | The key to load. |
int | $requiredversion | Minimum required version |
mixed | $actualversion | Should be set to the actual version number retrieved |
- Return values
-
mixed | What ever data should be returned, or false if it can't be loaded. |
◆ load_many_for_cache()
core_cache\data_source_interface::load_many_for_cache |
( |
array | $keys | ) |
|
|
inherited |
The documentation for this interface was generated from the following file:
- cache/classes/versionable_data_source_interface.php