All Downloads are FREE. Search and download functionalities are using the official Maven repository.

.gateleen.gateleen-hook.2.1.13.source-code.start_queue_timer.lua Maven / Gradle / Ivy

The newest version!
local queuesTimersSet = KEYS[1]
local queue = ARGV[1]
local expireTS = tonumber(ARGV[2])

local count = 0
local score = tonumber(redis.call('zscore',queuesTimersSet,queue))
if score == nil then
    count = tonumber(redis.call('zadd',queuesTimersSet,expireTS,queue))
end
return count




© 2015 - 2025 Weber Informatics LLC | Privacy Policy