This commit is contained in:
2021-06-07 12:05:03 +08:00
parent c786999fe1
commit 760192d63a
+3
View File
@@ -121,6 +121,9 @@ class Zookeeper extends Process
$script = <<<SCRIPT
local _two = redis.call('zRangeByScore', KEYS[1], '0', ARGV[1])
if (table.getn(_two) > 0) then
redis.call('ZREM', KEYS[1], unpack(_two))
end
return _two
SCRIPT;