Fix Null memcache fallback to match interface

This commit is contained in:
Vincent Petry 2015-05-21 13:06:20 +02:00 committed by Robin Appelman
parent 006eaa84aa
commit 6df502a5aa
1 changed files with 7 additions and 3 deletions

View File

@ -22,7 +22,7 @@
namespace OC\Memcache;
class Null extends Cache {
class Null extends Cache implements \OCP\IMemcache {
public function get($key) {
return null;
}
@ -39,11 +39,15 @@ class Null extends Cache {
return true;
}
public function inc($key) {
public function add($key, $value, $ttl = 0) {
return true;
}
public function dec($key) {
public function inc($key, $step = 1) {
return true;
}
public function dec($key, $step = 1) {
return true;
}