From 05863545fc3c392568d13625310969e3ea1bab0a Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 16 Oct 2017 15:51:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BCache=E7=B1=BB=E7=9A=84rememb?= =?UTF-8?q?er=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/cache/Driver.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/think/cache/Driver.php b/library/think/cache/Driver.php index 0b8a3212..d40f4847 100644 --- a/library/think/cache/Driver.php +++ b/library/think/cache/Driver.php @@ -138,8 +138,10 @@ abstract class Driver } catch (\Exception $e) { // 解锁 $this->rm($name . '_lock'); + throw $e; } catch (\throwable $e) { $this->rm($name . '_lock'); + throw $e; } } else { $value = $this->get($name);