| Moodle APIs 4.3
    Moodle 4.3.6 (Build: 20240812) | 
Cache store interface. More...
| Static Public Member Functions | |
| static | are_requirements_met () | 
| Static method to check if the store requirements are met. | |
| static | get_supported_features (array $configuration=array()) | 
| Returns the supported features as a binary flag. | |
| static | get_supported_modes (array $configuration=array()) | 
| Returns the supported modes as a binary flag. | |
| static | initialise_test_instance (cache_definition $definition) | 
| Generates an instance of the cache store that can be used for testing. | |
| static | is_supported_mode ($mode) | 
| Static method to check if a store is usable with the given mode. | |
| static | unit_test_configuration () | 
| Generates the appropriate configuration required for unit testing. | |
Cache store interface.
This interface defines the static methods that must be implemented by every cache store plugin. To ensure plugins implement this class the abstract cache_store class implements this interface.
| 
 | static | 
Static method to check if the store requirements are met.
| bool | True if the stores software/hardware requirements have been met and it can be used. False otherwise. | 
Implemented in cachestore_apcu, cachestore_dummy, cachestore_file, cachestore_redis, cachestore_session, and cachestore_static.
| 
 | static | 
Returns the supported features as a binary flag.
| array | $configuration | The configuration of a store to consider specifically. | 
| int | The supported features. | 
Implemented in cachestore_apcu, cachestore_dummy, cachestore_file, cachestore_redis, cachestore_session, and cachestore_static.
| 
 | static | 
Returns the supported modes as a binary flag.
| array | $configuration | The configuration of a store to consider specifically. | 
| int | The supported modes. | 
Implemented in cachestore_apcu, cachestore_dummy, cachestore_file, cachestore_redis, cachestore_session, and cachestore_static.
| 
 | static | 
Generates an instance of the cache store that can be used for testing.
Returns an instance of the cache store, or false if one cannot be created.
| cache_definition | $definition | 
| cache_store|false | 
Implemented in cachestore_apcu, cachestore_dummy, cachestore_file, cachestore_redis, cachestore_session, and cachestore_static.
| 
 | static | 
Static method to check if a store is usable with the given mode.
| int | $mode | One of cache_store\MODE_* | 
Implemented in cachestore_apcu, cachestore_dummy, cachestore_file, cachestore_redis, cachestore_session, and cachestore_static.
| 
 | static | 
Generates the appropriate configuration required for unit testing.
| array | Array of unit test configuration data to be used by initialise(). | 
Implemented in cachestore_apcu, cachestore_dummy, cachestore_file, cachestore_redis, cachestore_session, and cachestore_static.