]> source.dussan.org Git - nextcloud-server.git/commitdiff
ensure redis returns bool for hasKey 26642/head
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Tue, 13 Apr 2021 21:07:54 +0000 (23:07 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Tue, 20 Apr 2021 08:36:55 +0000 (08:36 +0000)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
lib/private/Memcache/Redis.php

index 56470afa0c5c8e3d6e13088daf88cef248da087b..303b3afb67ea52446486b850872c9f3df097fc44 100644 (file)
@@ -69,7 +69,7 @@ class Redis extends Cache implements IMemcacheTTL {
        }
 
        public function hasKey($key) {
-               return self::$cache->exists($this->getNameSpace() . $key);
+               return (bool)self::$cache->exists($this->getNameSpace() . $key);
        }
 
        public function remove($key) {