1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 08:32:40 +08:00

use redis function

This commit is contained in:
2023-10-27 17:33:11 +08:00
parent 1c5a32e828
commit f3918dd02b
3 changed files with 30 additions and 86 deletions

View File

@ -81,6 +81,8 @@ local function allocateSerial(keys, args)
begin = min
finish = step
redis.call("HSET", key, code, step)
-- 检查上次绕回时间,判断是否需要检查时间段冲突
reback = 1
end