Browse Source

Merge pull request #4700 from nextcloud/redis-cluster-compatibility

Compatibility with Redis and RedisCluster
pull/4701/head
Roeland Jago Douma 9 years ago
committed by GitHub
parent
commit
c3117f4e55
  1. 4
      lib/private/Memcache/Redis.php

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

Loading…
Cancel
Save