aboutsummaryrefslogtreecommitdiff
path: root/examples/redis-unstable/src/commands/sflush.json
diff options
context:
space:
mode:
Diffstat (limited to 'examples/redis-unstable/src/commands/sflush.json')
-rw-r--r--examples/redis-unstable/src/commands/sflush.json75
1 files changed, 75 insertions, 0 deletions
diff --git a/examples/redis-unstable/src/commands/sflush.json b/examples/redis-unstable/src/commands/sflush.json
new file mode 100644
index 0000000..bac27ad
--- /dev/null
+++ b/examples/redis-unstable/src/commands/sflush.json
@@ -0,0 +1,75 @@
1{
2 "SFLUSH": {
3 "summary": "Remove all keys from selected range of slots.",
4 "complexity": "O(N)+O(k) where N is the number of keys and k is the number of slots.",
5 "group": "server",
6 "since": "8.0.0",
7 "arity": -3,
8 "function": "sflushCommand",
9 "command_flags": [
10 "WRITE",
11 "EXPERIMENTAL"
12 ],
13 "acl_categories": [
14 "KEYSPACE",
15 "DANGEROUS"
16 ],
17 "command_tips": [
18 ],
19 "reply_schema": {
20 "description": "List of slot ranges",
21 "type": "array",
22 "minItems": 0,
23 "maxItems": 4294967295,
24 "items": {
25 "type": "array",
26 "minItems": 2,
27 "maxItems": 2,
28 "items": [
29 {
30 "description": "start slot number",
31 "type": "integer"
32 },
33 {
34 "description": "end slot number",
35 "type": "integer"
36 }
37 ]
38 }
39 },
40 "arguments": [
41 {
42 "name": "data",
43 "type": "block",
44 "multiple": true,
45 "arguments": [
46 {
47 "name": "slot-start",
48 "type": "integer"
49 },
50 {
51 "name": "slot-last",
52 "type": "integer"
53 }
54 ]
55 },
56 {
57 "name": "flush-type",
58 "type": "oneof",
59 "optional": true,
60 "arguments": [
61 {
62 "name": "async",
63 "type": "pure-token",
64 "token": "ASYNC"
65 },
66 {
67 "name": "sync",
68 "type": "pure-token",
69 "token": "SYNC"
70 }
71 ]
72 }
73 ]
74 }
75}