summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-05-13 11:03:38 +0200
committerRobin Appelman <icewind@owncloud.com>2015-06-01 13:22:56 +0200
commit5edf294ce597c59c204c37e9fb753807ab40082f (patch)
tree6bd99a1d43645dc2faf9d506cefd876f14e5c80f /lib
parentd519aba878cca25acbe0aecc39efa9cb76bda4bb (diff)
downloadnextcloud-server-5edf294ce597c59c204c37e9fb753807ab40082f.tar.gz
nextcloud-server-5edf294ce597c59c204c37e9fb753807ab40082f.zip
Add CAS methods to Null memcache
This prevents breaking ownCloud completely when memcache is not enabled and the locking code is triggered
Diffstat (limited to 'lib')
-rw-r--r--lib/private/memcache/null.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/private/memcache/null.php b/lib/private/memcache/null.php
index 3b8ce0b42da..c9b07f48ce2 100644
--- a/lib/private/memcache/null.php
+++ b/lib/private/memcache/null.php
@@ -39,6 +39,18 @@ class Null extends Cache {
return true;
}
+ public function inc($key) {
+ return true;
+ }
+
+ public function dec($key) {
+ return true;
+ }
+
+ public function cas($key, $old, $new) {
+ return true;
+ }
+
public function clear($prefix = '') {
return true;
}