summaryrefslogtreecommitdiffstats
path: root/src/commands/swapdb.json
blob: e98bc768bf0abed96ad831bc2cc65842d26ff712 (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
{
    "SWAPDB": {
        "summary": "Swaps two Redis databases.",
        "complexity": "O(N) where N is the count of clients watching or blocking on keys from both databases.",
        "group": "server",
        "since": "4.0.0",
        "arity": 3,
        "function": "swapdbCommand",
        "command_flags": [
            "WRITE",
            "FAST"
        ],
        "acl_categories": [
            "KEYSPACE",
            "DANGEROUS"
        ],
        "arguments": [
            {
                "name": "index1",
                "type": "integer"
            },
            {
                "name": "index2",
                "type": "integer"
            }
        ],
        "reply_schema": {
            "const": "OK"
        }
    }
}