Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Public Member Functions | |
load_for_cache ($key) | |
Loads the data for the key provided ready formatted for caching. More... | |
load_many_for_cache (array $keys) | |
Loads several keys for the cache. More... | |
Static Public Member Functions | |
static | get_instance_for_cache (cache_definition $definition) |
Returns an instance of the data source class that the cache can use for loading data using the other methods specified by this interface. More... | |
|
static |
Returns an instance of the data source class that the cache can use for loading data using the other methods specified by this interface.
cache_definition | $definition |
object |
Implemented in question_finder.
cache_data_source::load_for_cache | ( | $key | ) |
Loads the data for the key provided ready formatted for caching.
string | int | $key | The key to load. |
mixed | What ever data should be returned, or false if it can't be loaded. |
Implemented in core_message\time_last_message_between_users, and question_finder.
cache_data_source::load_many_for_cache | ( | array | $keys | ) |
Loads several keys for the cache.
array | $keys | An array of keys each of which will be string|int. |
array | An array of matching data items. |
Implemented in core_message\time_last_message_between_users, and question_finder.