From 03d450204399c091ad9c5f15d0fa7dbd33887f22 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 17 Oct 2017 16:12:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Bredis=E7=9A=84get=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= 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 2b05dcc0..f5d30042 100644 --- a/library/think/cache/driver/Redis.php +++ b/library/think/cache/driver/Redis.php @@ -80,7 +80,7 @@ class Redis extends Driver public function get($name, $default = false) { $value = $this->handler->get($this->getCacheKey($name)); - if (is_null($value)) { + if (is_null($value) || false === $value) { return $default; } $jsonData = json_decode($value, true);