mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进Cache类的remember方法
This commit is contained in:
2
library/think/cache/Driver.php
vendored
2
library/think/cache/Driver.php
vendored
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user