[Pkg-owncloud-commits] [owncloud] 219/457: Fix Null memcache fallback to match interface
David Prévot
taffit at moszumanska.debian.org
Sun Jun 28 20:06:10 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 6df502a5aa29b137d17bb7c17cb2552719386203
Author: Vincent Petry <pvince81 at owncloud.com>
Date: Thu May 21 13:06:20 2015 +0200
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 c9b07f4..982f7ed 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;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list