mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-07-23 17:49:34 +08:00
6 lines
144 B
Lua
6 lines
144 B
Lua
local current
|
|
current = redis.call("incr", KEYS[1])
|
|
if tonumber(current) == 1 then
|
|
redis.call("expire", KEYS[1], KEYS[2])
|
|
end
|
|
return current |