mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-10 00:22:48 +08:00
改进
This commit is contained in:
5
library/think/cache/Driver.php
vendored
5
library/think/cache/Driver.php
vendored
@@ -120,9 +120,10 @@ abstract class Driver
|
|||||||
public function remember($name, $value, $expire = null)
|
public function remember($name, $value, $expire = null)
|
||||||
{
|
{
|
||||||
if (!$this->has($name)) {
|
if (!$this->has($name)) {
|
||||||
while ($this->has($name . '_lock')) {
|
$time = time();
|
||||||
|
while ($time + 5 > time() && $this->has($name . '_lock')) {
|
||||||
// 存在锁定则等待
|
// 存在锁定则等待
|
||||||
usleep(100000);
|
usleep(200000);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user