|
static | get_instance_for_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 the data_source_interface interface.
|
|
◆ get_instance_for_cache()
static core_message\time_last_message_between_users::get_instance_for_cache |
( |
definition | $definition | ) |
|
|
static |
Returns an instance of the data source class that the cache can use for loading data using the other methods specified by the data_source_interface interface.
- Parameters
-
- Return values
-
Implements core_cache\data_source_interface.
◆ load_for_cache()
core_message\time_last_message_between_users::load_for_cache |
( |
| $key | ) |
|
Loads the data for the key provided ready formatted for caching.
- Parameters
-
string | int | $key | The key to load. |
- Return values
-
mixed | What ever data should be returned, or false if it can't be loaded. |
Implements core_cache\data_source_interface.
◆ load_many_for_cache()
core_message\time_last_message_between_users::load_many_for_cache |
( |
array | $keys | ) |
|
Loads several keys for the cache.
- Parameters
-
array | $keys | An array of keys each of which will be string|int. |
- Return values
-
array | An array of matching data items. |
Implements core_cache\data_source_interface.
The documentation for this class was generated from the following file:
- message/classes/time_last_message_between_users.php