Merge remote-tracking branch 'remotes/origin/checkrefer'
This commit is contained in:
@@ -80,6 +80,25 @@ class QueueRedis
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除一个或多个 Redis 键(用于重检前清除队列任务 completed 标记)
|
||||
*/
|
||||
public function deleteRedisKeys(array $keys)
|
||||
{
|
||||
$keys = array_values(array_filter($keys, function ($k) {
|
||||
return $k !== null && $k !== '';
|
||||
}));
|
||||
if (empty($keys)) {
|
||||
return true;
|
||||
}
|
||||
try {
|
||||
$this->connect()->del(...$keys);
|
||||
return true;
|
||||
} catch (\Exception $e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// 安全释放锁(仅当值匹配时删除)
|
||||
public function releaseRedisLock($key, $value)
|
||||
|
||||
2578
application/common/ReferenceCheckService.php
Normal file
2578
application/common/ReferenceCheckService.php
Normal file
File diff suppressed because it is too large
Load Diff
1271
application/common/service/LLMService.php
Normal file
1271
application/common/service/LLMService.php
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user