|
static | wake_from_cache ($data) |
| Takes the data provided by prepare_to_cache and reinitialises an instance of the associated from it.
|
|
◆ prepare_to_cache()
core_cache\cacheable_object_interface::prepare_to_cache |
( |
| ) |
|
Prepares the object for caching.
Works like the __sleep method.
- Return values
-
mixed | The data to cache, can be anything except a class that implements the cacheable_object... that would be dumb. |
Implemented in core_cache\cacheable_object_array.
◆ wake_from_cache()
static core_cache\cacheable_object_interface::wake_from_cache |
( |
| $data | ) |
|
|
static |
Takes the data provided by prepare_to_cache and reinitialises an instance of the associated from it.
- Parameters
-
- Return values
-
object | The instance for the given data. |
Implemented in core_cache\cacheable_object_array.
The documentation for this interface was generated from the following file:
- cache/classes/cacheable_object_interface.php