summaryrefslogtreecommitdiffstats
path: root/src/commands/command-getkeysandflags.json
blob: a069f5e606ffc95ded36cd83ce648d3fcbfe146b (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
{
    "GETKEYSANDFLAGS": {
        "summary": "Extracts the key names and access flags for an arbitrary command.",
        "complexity": "O(N) where N is the number of arguments to the command",
        "group": "server",
        "since": "7.0.0",
        "arity": -3,
        "container": "COMMAND",
        "function": "commandGetKeysAndFlagsCommand",
        "command_flags": [
            "LOADING",
            "STALE",
            "SENTINEL"
        ],
        "acl_categories": [
            "CONNECTION"
        ],
        "reply_schema": {
            "description": "List of keys from the given Redis command and their usage flags.",
            "type": "array",
            "uniqueItems": true,
            "items": {
                "type": "array",
                "minItems": 2,
                "maxItems": 2,
                "items": [
                    {
                        "description": "Key name",
                        "type": "string"
                    },
                    {
                        "description": "Set of key flags",
                        "type": "array",
                        "minItems": 1,
                        "items": {
                            "type": "string"
                        }
                    }
                ]
            }
        },
        "arguments": [
            {
                "name": "command",
                "type": "string"
            },
            {
                "name": "arg",
                "type": "string",
                "optional": true,
                "multiple": true
            }
        ]
    }
}