From 9f9af176109203ae4833fcc6055c4c542a8e02f1 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sun, 10 Dec 2017 23:28:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Bredis=E9=A9=B1=E5=8A=A8?= =?UTF-8?q?=E7=9A=84=E7=BC=93=E5=AD=98=E6=9C=89=E6=95=88=E6=9C=9F=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= 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 9173ef46..a58151f2 100644 --- a/library/think/cache/driver/Redis.php +++ b/library/think/cache/driver/Redis.php @@ -114,7 +114,7 @@ class Redis extends Driver } $key = $this->getCacheKey($name); $value = is_scalar($value) ? $value : 'think_serialize:' . serialize($value); - if (is_int($expire) && $expire) { + if ($expire) { $result = $this->handler->setex($key, $expire, $value); } else { $result = $this->handler->set($key, $value);