mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22: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) {
|
} catch (\Exception $e) {
|
||||||
// 解锁
|
// 解锁
|
||||||
$this->rm($name . '_lock');
|
$this->rm($name . '_lock');
|
||||||
|
throw $e;
|
||||||
} catch (\throwable $e) {
|
} catch (\throwable $e) {
|
||||||
$this->rm($name . '_lock');
|
$this->rm($name . '_lock');
|
||||||
|
throw $e;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$value = $this->get($name);
|
$value = $this->get($name);
|
||||||
|
|||||||
Reference in New Issue
Block a user