改进Cache类的remember方法

This commit is contained in:
thinkphp
2017-10-16 15:51:01 +08:00
parent 1cc247fa12
commit 05863545fc

View File

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