MDL-36768 cache: replaced cache_store interface with abstract class

This commit is contained in:
Sam Hemelryk
2012-11-26 14:11:01 +13:00
parent bd188851f2
commit 75cde6b9ac
12 changed files with 212 additions and 271 deletions
+1 -25
View File
@@ -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