summaryrefslogtreecommitdiffstats
path: root/src/commands/client-getredir.json
blob: 6fdb002dc8bb44ed1c8e0e4df9cf9da6aa94fa2e (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
33
34
35
36
37
{
    "GETREDIR": {
        "summary": "Returns the client ID to which the connection's tracking notifications are redirected.",
        "complexity": "O(1)",
        "group": "connection",
        "since": "6.0.0",
        "arity": 2,
        "container": "CLIENT",
        "function": "clientCommand",
        "command_flags": [
            "NOSCRIPT",
            "LOADING",
            "STALE",
            "SENTINEL"
        ],
        "acl_categories": [
            "CONNECTION"
        ],
        "reply_schema": {
            "oneOf": [
                {
                    "const": 0,
                    "description": "Not redirecting notifications to any client."
                },
                {
                    "const": -1,
                    "description": "Client tracking is not enabled."
                },
                {
                    "type": "integer",
                    "description": "ID of the client we are redirecting the notifications to.",
                    "minimum": 1
                }
            ]
        }
    }
}