From: Arthur Schiwon Date: Tue, 13 Apr 2021 21:07:54 +0000 (+0200) Subject: ensure redis returns bool for hasKey X-Git-Tag: v20.0.10RC1~27^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=89960468ae9940245f4531b48b335f600ee2ffb4;p=nextcloud-server.git ensure redis returns bool for hasKey Signed-off-by: Arthur Schiwon --- diff --git a/lib/private/Memcache/Redis.php b/lib/private/Memcache/Redis.php index 56470afa0c5..303b3afb67e 100644 --- a/lib/private/Memcache/Redis.php +++ b/lib/private/Memcache/Redis.php @@ -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) {