diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-05-21 13:06:20 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-06-01 13:22:56 +0200 |
commit | 6df502a5aa29b137d17bb7c17cb2552719386203 (patch) | |
tree | ecc548ad23b95163c80855e51349afee62cc32e0 /lib/private/memcache | |
parent | 006eaa84aa25b6301fc75cdf2fbf2594e21b4271 (diff) | |
download | nextcloud-server-6df502a5aa29b137d17bb7c17cb2552719386203.tar.gz nextcloud-server-6df502a5aa29b137d17bb7c17cb2552719386203.zip |
Fix Null memcache fallback to match interface
Diffstat (limited to 'lib/private/memcache')
-rw-r--r-- | lib/private/memcache/null.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/private/memcache/null.php b/lib/private/memcache/null.php index c9b07f48ce2..982f7edc80f 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; } |