From 03587989eaaac09646fefea386009225b0e447bd Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Thu, 2 Aug 2018 10:59:53 +0800 Subject: [PATCH] MDL-63050 cachestore_redis: Update hExists to check empty --- cache/stores/redis/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache/stores/redis/lib.php b/cache/stores/redis/lib.php index bcf56fddbbf..83a58892e5b 100644 --- a/cache/stores/redis/lib.php +++ b/cache/stores/redis/lib.php @@ -325,7 +325,7 @@ class cachestore_redis extends cache_store implements cache_is_key_aware, cache_ * @return bool True if the key exists, false if it does not. */ public function has($key) { - return $this->redis->hExists($this->hash, $key); + return !empty($this->redis->hExists($this->hash, $key)); } /**