summaryrefslogtreecommitdiffstats
path: root/src/commands/bgsave.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/bgsave.json')
-rw-r--r--src/commands/bgsave.json40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/commands/bgsave.json b/src/commands/bgsave.json
new file mode 100644
index 0000000..f73d8a8
--- /dev/null
+++ b/src/commands/bgsave.json
@@ -0,0 +1,40 @@
+{
+ "BGSAVE": {
+ "summary": "Asynchronously saves the database(s) to disk.",
+ "complexity": "O(1)",
+ "group": "server",
+ "since": "1.0.0",
+ "arity": -1,
+ "function": "bgsaveCommand",
+ "history": [
+ [
+ "3.2.2",
+ "Added the `SCHEDULE` option."
+ ]
+ ],
+ "command_flags": [
+ "NO_ASYNC_LOADING",
+ "ADMIN",
+ "NOSCRIPT"
+ ],
+ "arguments": [
+ {
+ "name": "schedule",
+ "token": "SCHEDULE",
+ "type": "pure-token",
+ "optional": true,
+ "since": "3.2.2"
+ }
+ ],
+ "reply_schema": {
+ "oneOf": [
+ {
+ "const": "Background saving started"
+ },
+ {
+ "const": "Background saving scheduled"
+ }
+ ]
+ }
+ }
+}