summaryrefslogtreecommitdiffstats
path: root/lib/private/Memcache
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2021-04-13 23:07:54 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2021-04-13 23:07:54 +0200
commit9f5480eef4dcf36b9e31cfe85f9c56c7becc034d (patch)
tree26816f6bcb5f6582a025606bb2977ead697a2b3c /lib/private/Memcache
parent23b8e4a1d4e3d3f54d18f6c7f1be57baf8f75795 (diff)
downloadnextcloud-server-9f5480eef4dcf36b9e31cfe85f9c56c7becc034d.tar.gz
nextcloud-server-9f5480eef4dcf36b9e31cfe85f9c56c7becc034d.zip
ensure redis returns bool for hasKey
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private/Memcache')
-rw-r--r--lib/private/Memcache/Redis.php2
1 files changed, 1 insertions, 1 deletions
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) {