Add CAS methods to Null memcache
This prevents breaking ownCloud completely when memcache is not enabled and the locking code is triggered
This commit is contained in:
parent
d519aba878
commit
5edf294ce5
|
@ -39,6 +39,18 @@ class Null extends Cache {
|
||||||
return true;
|
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 = '') {
|
public function clear($prefix = '') {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue