diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-05-04 12:42:58 -0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-05-04 12:42:58 -0300 |
commit | 7f46898dad01eaa95e8ba0f66a8ebaddd0626536 (patch) | |
tree | ae9e719e23076eb80571b6dd6cb777d85b149462 /lib/private/Memcache | |
parent | 7bb63d6a4d014cf1a85fcba09cca77f0878f93c8 (diff) | |
download | nextcloud-server-7f46898dad01eaa95e8ba0f66a8ebaddd0626536.tar.gz nextcloud-server-7f46898dad01eaa95e8ba0f66a8ebaddd0626536.zip |
Compatibility with Redis and RedisCluster
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Memcache')
-rw-r--r-- | lib/private/Memcache/Redis.php | 4 |
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; } |