Differences Between: [Versions 400 and 402] [Versions 400 and 403]
Cache dummy store. This dummy store is used when a load has no other stores that it can make use of. This shouldn't happen in normal operation... I think.
Copyright: | 2012 Sam Hemelryk |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 283 lines (8 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
cachestore_dummy:: (20 methods):
__construct()
are_requirements_met()
can_add_instance()
get_supported_features()
get_supported_modes()
initialise()
is_initialised()
is_supported_mode()
get()
get_many()
set()
set_many()
delete()
delete_many()
purge()
cleanup()
instance_deleted()
initialise_test_instance()
unit_test_configuration()
my_name()
Class: cachestore_dummy - X-Ref
The cache dummy store.__construct($name = 'Dummy store', array $configuration = array() X-Ref |
Constructs a dummy store instance. param: string $name param: array $configuration |
are_requirements_met() X-Ref |
Returns true if this store plugin is usable. return: bool |
can_add_instance() X-Ref |
Returns true if the user can add an instance. return: bool |
get_supported_features(array $configuration = array() X-Ref |
Returns the supported features. return: int param: array $configuration |
get_supported_modes(array $configuration = array() X-Ref |
Returns the supported mode. return: int param: array $configuration |
initialise(cache_definition $definition) X-Ref |
Initialises the store instance for a definition. param: cache_definition $definition |
is_initialised() X-Ref |
Returns true if this has been initialised. return: bool |
is_supported_mode($mode) X-Ref |
Returns true the given mode is supported. return: bool param: int $mode |
get($key) X-Ref |
Returns the data for the given key return: string|false param: string $key |
get_many($keys) X-Ref |
Gets' the values for many keys return: bool param: array $keys |
set($key, $data) X-Ref |
Sets an item in the cache return: bool param: string $key param: mixed $data |
set_many(array $keyvaluearray) X-Ref |
Sets many items in the cache return: int param: array $keyvaluearray |
delete($key) X-Ref |
Deletes an item from the cache return: bool param: string $key |
delete_many(array $keys) X-Ref |
Deletes many items from the cache return: bool param: array $keys |
purge() X-Ref |
Deletes all of the items from the cache. return: bool |
cleanup() X-Ref |
Performs any necessary clean up when the store instance is being deleted. |
instance_deleted() X-Ref |
Performs any necessary operation when the store instance is being deleted. This method may be called before the store has been initialised. |
initialise_test_instance(cache_definition $definition) X-Ref |
Generates an instance of the cache store that can be used for testing. return: false param: cache_definition $definition |
unit_test_configuration() X-Ref |
Generates the appropriate configuration required for unit testing. return: array Array of unit test configuration data to be used by initialise(). |
my_name() X-Ref |
Returns the name of this instance. return: string |