mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-26 06:39:27 +08:00
08d466b6ab
Co-authored-by: Oliver King <oking3@uncc.edu>
12 lines
237 B
Lua
12 lines
237 B
Lua
local refresh_expiration = function (now, nextRequest, groupTimeout)
|
|
|
|
if groupTimeout ~= nil then
|
|
local ttl = (nextRequest + groupTimeout) - now
|
|
|
|
for i = 1, #KEYS do
|
|
redis.call('pexpire', KEYS[i], ttl)
|
|
end
|
|
end
|
|
|
|
end
|