summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2017-05-04 21:03:02 +0200
committerGitHub <noreply@github.com>2017-05-04 21:03:02 +0200
commitc3117f4e5577376c96b4b8e00180708ddefcc521 (patch)
tree77648bd9cb89c0c2a3ef975162ffff80565b7d75
parentfb3ac3291569dc8cd5506f0a61b206f5014b860f (diff)
parent7f46898dad01eaa95e8ba0f66a8ebaddd0626536 (diff)
downloadnextcloud-server-c3117f4e5577376c96b4b8e00180708ddefcc521.tar.gz
nextcloud-server-c3117f4e5577376c96b4b8e00180708ddefcc521.zip
Merge pull request #4700 from nextcloud/redis-cluster-compatibility
Compatibility with Redis and RedisCluster
-rw-r--r--lib/private/Memcache/Redis.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Memcache/Redis.php b/lib/private/Memcache/Redis.php
index d423b134f95..a154d08deca 100644
--- a/lib/private/Memcache/Redis.php
+++ b/lib/private/Memcache/Redis.php
@@ -70,7 +70,7 @@ class Redis extends Cache implements IMemcacheTTL {
}
public function remove($key) {
- if (self::$cache->delete($this->getNameSpace() . $key)) {
+ if (self::$cache->del($this->getNameSpace() . $key)) {
return true;
} else {
return false;
@@ -82,7 +82,7 @@ class Redis extends Cache implements IMemcacheTTL {
$it = null;
self::$cache->setOption(\Redis::OPT_SCAN, \Redis::SCAN_RETRY);
while ($keys = self::$cache->scan($it, $prefix)) {
- self::$cache->delete($keys);
+ self::$cache->del($keys);
}
return true;
}