summaryrefslogtreecommitdiffstats
path: root/src/commands/swapdb.json
blob: 6ea2baeaac4fbb85973f7ad1a19d6cdfdf806075 (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
{
    "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"
            }
        ]
    }
}