fix: 脚本问题导致限流脚本无效,不确定是否是版本升级带来的问题。

This commit is contained in:
Chopper711 2024-09-18 12:24:11 +08:00
parent e34b4172b8
commit 16ae69ed06

View File

@ -2,7 +2,7 @@ local c
c = redis.call('get',KEYS[1])
-- 调用不超过最大值,则直接返回
if c and tonumber(c) > tonumber(ARGV[1]) then
return c;
return tonumber(c);
end
-- 执行计算器自加
c = redis.call('incr',KEYS[1])