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);