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

lua.CleanUpExpiredSemaphoreLocksScript.lua Maven / Gradle / Ivy

The newest version!
local leasersKey = KEYS[1]
local leasers = redis.call("smembers", leasersKey)
for _, leaser in ipairs(leasers) do
    local leaserValidityKey = ARGV[1] .. leaser
    if redis.call("exists", leaserValidityKey) == 0 then
        redis.call("srem", leasersKey, leaser)
    end
end




© 2015 - 2024 Weber Informatics LLC | Privacy Policy