From 5b280948fc6e3e7826a941b70a0cbff4ad20a83c Mon Sep 17 00:00:00 2001 From: sockball Date: Thu, 19 Dec 2019 14:22:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20Redis::has()=20=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E7=9A=84=E8=BF=94=E5=9B=9E=E5=80=BC=E4=B8=BAbool?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/cache/driver/Redis.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/cache/driver/Redis.php b/library/think/cache/driver/Redis.php index 027b3ea2..8956e774 100644 --- a/library/think/cache/driver/Redis.php +++ b/library/think/cache/driver/Redis.php @@ -70,7 +70,7 @@ class Redis extends Driver */ public function has($name) { - return $this->handler->exists($this->getCacheKey($name)); + return (bool) $this->handler->exists($this->getCacheKey($name)); } /**