summaryrefslogtreecommitdiffstats
path: root/src/commands/client-trackinginfo.json
blob: 270a3d5e6ed566b4588ed71ac80fdd81475242bf (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
    "TRACKINGINFO": {
        "summary": "Returns information about server-assisted client-side caching for the connection.",
        "complexity": "O(1)",
        "group": "connection",
        "since": "6.2.0",
        "arity": 2,
        "container": "CLIENT",
        "function": "clientCommand",
        "command_flags": [
            "NOSCRIPT",
            "LOADING",
            "STALE",
            "SENTINEL"
        ],
        "acl_categories": [
            "CONNECTION"
        ],
        "reply_schema": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "flags": {
                    "type": "array",
                    "items": {
                        "oneOf": [
                            {
                                "const": "off",
                                "description": "The connection isn't using server assisted client side caching."
                            },
                            {
                                "const": "on",
                                "description": "Server assisted client side caching is enabled for the connection."
                            },
                            {
                                "const": "bcast",
                                "description": "The client uses broadcasting mode."
                            },
                            {
                                "const": "optin",
                                "description": "The client does not cache keys by default."
                            },
                            {
                                "const": "optout",
                                "description": "The client caches keys by default."
                            },
                            {
                                "const": "caching-yes",
                                "description": "The next command will cache keys (exists only together with optin)."
                            },
                            {
                                "const": "caching-no",
                                "description": "The next command won't cache keys (exists only together with optout)."
                            },
                            {
                                "const": "noloop",
                                "description": "The client isn't notified about keys modified by itself."
                            },
                            {
                                "const": "broken_redirect",
                                "description": "The client ID used for redirection isn't valid anymore."
                            }
                        ]
                    }
                },
                "redirect": {
                    "type": "integer",
                    "description": "The client ID used for notifications redirection, or -1 when none."
                },
                "prefixes": {
                    "type": "array",
                    "description": "List of key prefixes for which notifications are sent to the client.",
                    "items": {
                        "type": "string"
                    }
                }
            }
        }
    }
}