MDL-36768 cache: replaced cache_store interface with abstract class
This commit is contained in:
Vendored
+1
-25
@@ -37,7 +37,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @copyright 2012 Sam Hemelryk
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class cachestore_dummy implements cache_store {
|
||||
class cachestore_dummy extends cache_store {
|
||||
|
||||
/**
|
||||
* The name of this store.
|
||||
@@ -135,30 +135,6 @@ class cachestore_dummy implements cache_store {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if this store supports data guarantee.
|
||||
* @return bool
|
||||
*/
|
||||
public function supports_data_guarantee() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if this store supports multiple identifiers.
|
||||
* @return bool
|
||||
*/
|
||||
public function supports_multiple_identifiers() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if this store supports a native ttl.
|
||||
* @return bool
|
||||
*/
|
||||
public function supports_native_ttl() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the data for the given key
|
||||
* @param string $key
|
||||
|
||||
Reference in New Issue
Block a user