From 89960468ae9940245f4531b48b335f600ee2ffb4 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 13 Apr 2021 23:07:54 +0200 Subject: [PATCH] ensure redis returns bool for hasKey Signed-off-by: Arthur Schiwon --- lib/private/Memcache/Redis.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5