改名
This commit is contained in:
@@ -119,11 +119,7 @@ class Zookeeper extends Process
|
||||
private function loadCarobTask(Redis|\Redis $redis): array
|
||||
{
|
||||
$script = <<<SCRIPT
|
||||
local _two = redis.call('zRangeByScore', KEYS[1], '0', ARGV[1])
|
||||
|
||||
redis.call('ZREM', KEYS[1], unpack(_two))
|
||||
|
||||
return {_two}
|
||||
return {}
|
||||
SCRIPT;
|
||||
$data = $redis->eval($script, [Producer::CRONTAB_KEY, (string)time()], 1);
|
||||
var_dump($data);
|
||||
|
||||
Reference in New Issue
Block a user