summaryrefslogtreecommitdiff
path: root/src/commands/shutdown.json
blob: 94b2cf588e45c1f3d95d72e6fd0b4a4586dedc70 (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
{
    "SHUTDOWN": {
        "summary": "Synchronously save the dataset to disk and then shut down the server",
        "complexity": "O(N) when saving, where N is the total number of keys in all databases when saving data, otherwise O(1)",
        "group": "server",
        "since": "1.0.0",
        "arity": -1,
        "function": "shutdownCommand",
        "history": [
            [
                "7.0",
                "Added the `NOW`, `FORCE` and `ABORT` modifiers. Introduced waiting for lagging replicas before exiting."
            ]
        ],
        "command_flags": [
            "ADMIN",
            "NOSCRIPT",
            "LOADING",
            "STALE",
	    "NO_MULTI",
            "SENTINEL",
	    "ALLOW_BUSY"
        ],
        "arguments": [
            {
                "name": "nosave_save",
                "type": "oneof",
                "optional": true,
                "arguments": [
                    {
                        "name": "nosave",
                        "type": "pure-token",
                        "token": "NOSAVE"
                    },
                    {
                        "name": "save",
                        "type": "pure-token",
                        "token": "SAVE"
                    }
                ]
            },
            {
                "name": "now",
                "type": "pure-token",
                "token": "NOW",
                "optional": true
            },
            {
                "name": "force",
                "type": "pure-token",
                "token": "FORCE",
                "optional": true
            },
            {
                "name": "abort",
                "type": "pure-token",
                "token": "ABORT",
                "optional": true
            }
        ]
    }
}