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:
Vincent Petry 2015-05-13 11:03:38 +02:00 committed by Robin Appelman
parent d519aba878
commit 5edf294ce5
1 changed files with 12 additions and 0 deletions

View File

@ -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;
}