aboutsummaryrefslogtreecommitdiff
path: root/examples/redis-unstable/src/commands/waitaof.json
diff options
context:
space:
mode:
Diffstat (limited to 'examples/redis-unstable/src/commands/waitaof.json')
-rw-r--r--examples/redis-unstable/src/commands/waitaof.json52
1 files changed, 52 insertions, 0 deletions
diff --git a/examples/redis-unstable/src/commands/waitaof.json b/examples/redis-unstable/src/commands/waitaof.json
new file mode 100644
index 0000000..19b514c
--- /dev/null
+++ b/examples/redis-unstable/src/commands/waitaof.json
@@ -0,0 +1,52 @@
1{
2 "WAITAOF": {
3 "summary": "Blocks until all of the preceding write commands sent by the connection are written to the append-only file of the master and/or replicas.",
4 "complexity": "O(1)",
5 "group": "generic",
6 "since": "7.2.0",
7 "arity": 4,
8 "function": "waitaofCommand",
9 "command_flags": [
10 "BLOCKING"
11 ],
12 "acl_categories": [
13 "CONNECTION"
14 ],
15 "command_tips": [
16 "REQUEST_POLICY:ALL_SHARDS",
17 "RESPONSE_POLICY:AGG_MIN"
18 ],
19 "reply_schema": {
20 "type": "array",
21 "description": "Number of local and remote AOF files in sync.",
22 "minItems": 2,
23 "maxItems": 2,
24 "items": [
25 {
26 "description": "Number of local AOF files.",
27 "type": "integer",
28 "minimum": 0
29 },
30 {
31 "description": "Number of replica AOF files.",
32 "type": "number",
33 "minimum": 0
34 }
35 ]
36 },
37 "arguments": [
38 {
39 "name": "numlocal",
40 "type": "integer"
41 },
42 {
43 "name": "numreplicas",
44 "type": "integer"
45 },
46 {
47 "name": "timeout",
48 "type": "integer"
49 }
50 ]
51 }
52}