Add MAXAGE support to CLIENT KILL
rueian opened this issue · comments
Rueian commented
Ref: redis/go-redis#2920
Suggested change:
Add a MAXAGE block
to the end of:
rueidis/hack/cmds/commands.json
Lines 663 to 715 in 236216b
"CLIENT KILL": { | |
"summary": "Kill the connection of a client", | |
"complexity": "O(N) where N is the number of client connections", | |
"arguments": [ | |
{ | |
"name": "ip:port", | |
"type": "string", | |
"optional": true | |
}, | |
{ | |
"command": "ID", | |
"name": "client-id", | |
"type": "integer", | |
"optional": true | |
}, | |
{ | |
"command": "TYPE", | |
"type": "enum", | |
"enum": [ | |
"NORMAL", | |
"MASTER", | |
"REPLICA", | |
"PUBSUB" | |
], | |
"optional": true | |
}, | |
{ | |
"command": "USER", | |
"name": "username", | |
"type": "string", | |
"optional": true | |
}, | |
{ | |
"command": "ADDR", | |
"name": "ip:port", | |
"type": "string", | |
"optional": true | |
}, | |
{ | |
"command": "LADDR", | |
"name": "ip:port", | |
"type": "string", | |
"optional": true | |
}, | |
{ | |
"command": "SKIPME", | |
"type": "enum", | |
"enum": [ | |
"YES", | |
"NO" | |
], | |
"optional": true | |
} |
and then run go generate
The NOVALUES block
should look like:
{
"name": "MAXAGE",
"type": "integer",
"token": "MAXAGE",
"optional": true
}