mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-23 14:18:00 +01:00
Break out into a multi-module project
This commit is contained in:
10
service/src/main/resources/lua/get_queues_to_persist.lua
Normal file
10
service/src/main/resources/lua/get_queues_to_persist.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
-- keys: queue_total_index
|
||||
-- argv: max_time, limit
|
||||
|
||||
local results = redis.call("ZRANGEBYSCORE", KEYS[1], 0, ARGV[1], "LIMIT", 0, ARGV[2])
|
||||
|
||||
if results and next(results) then
|
||||
redis.call("ZREM", KEYS[1], unpack(results))
|
||||
end
|
||||
|
||||
return results
|
||||
Reference in New Issue
Block a user