대상 채널 선택
This commit is contained in:
@ -44,6 +44,10 @@ var increaseSizeScript = `
|
||||
return {newsize, newseq}
|
||||
`
|
||||
var decreaseSizeScript = `
|
||||
local exists = redis.call("EXISTS", "_m_"..KEYS[1])
|
||||
if exists == 0 then
|
||||
return {err = "not target"}
|
||||
end
|
||||
local newseq = redis.call("HINCRBY", KEYS[1], "seq", 1)
|
||||
local newsize = redis.call("HINCRBY", KEYS[1], "size", -1)
|
||||
redis.call("HDEL", "_m_"..KEYS[1], KEYS[2])
|
||||
|
||||
Reference in New Issue
Block a user