summaryrefslogtreecommitdiff
path: root/src/commands/replicaof.json
blob: 90ec59fed382eeaaba406628cef3ac44015eb6fc (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
{
    "REPLICAOF": {
        "summary": "Make the server a replica of another instance, or promote it as master.",
        "complexity": "O(1)",
        "group": "server",
        "since": "5.0.0",
        "arity": 3,
        "function": "replicaofCommand",
        "command_flags": [
            "NO_ASYNC_LOADING",
            "ADMIN",
            "ALLOW_BUSY",
            "NOSCRIPT",
            "STALE"
        ],
        "arguments": [
            {
                "name": "host",
                "type": "string"
            },
            {
                "name": "port",
                "type": "string"
            }
        ]
    }
}