summaryrefslogtreecommitdiffstats
path: root/src/commands/client-getname.json
blob: 9e237af849b327957aa393c273473957d4a7a460 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
    "GETNAME": {
        "summary": "Returns the name of the connection.",
        "complexity": "O(1)",
        "group": "connection",
        "since": "2.6.9",
        "arity": 2,
        "container": "CLIENT",
        "function": "clientCommand",
        "command_flags": [
            "NOSCRIPT",
            "LOADING",
            "STALE",
            "SENTINEL"
        ],
        "acl_categories": [
            "CONNECTION"
        ],
        "reply_schema": {
            "oneOf": [
                {
                    "type": "string",
                    "description": "The connection name of the current connection"
                },
                {
                    "type": "null",
                    "description": "Connection name was not set"
                }
            ]
        }
    }
}