From 6df502a5aa29b137d17bb7c17cb2552719386203 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 21 May 2015 13:06:20 +0200 Subject: [PATCH] Fix Null memcache fallback to match interface --- lib/private/memcache/null.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/private/memcache/null.php b/lib/private/memcache/null.php index c9b07f48ce..982f7edc80 100644 --- a/lib/private/memcache/null.php +++ b/lib/private/memcache/null.php @@ -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; }