redis / rueidis

A fast Golang Redis client that supports Client Side Caching, Auto Pipelining, Generics OM, RedisJSON, RedisBloom, RediSearch, etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add MAXAGE support to CLIENT KILL

rueian opened this issue · comments

Ref: redis/go-redis#2920

Suggested change:

Add a MAXAGE block to the end of:

"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
      }