aboutsummaryrefslogtreecommitdiff
path: root/examples/redis-unstable/src/commands/cluster-setslot.json
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 22:40:55 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 22:40:55 +0100
commit5d8dfe892a2ea89f706ee140c3bdcfd89fe03fda (patch)
tree1acdfa5220cd13b7be43a2a01368e80d306473ca /examples/redis-unstable/src/commands/cluster-setslot.json
parentc7ab12bba64d9c20ccd79b132dac475f7bc3923e (diff)
downloadcrep-5d8dfe892a2ea89f706ee140c3bdcfd89fe03fda.tar.gz
Add Redis source code for testing
Diffstat (limited to 'examples/redis-unstable/src/commands/cluster-setslot.json')
-rw-r--r--examples/redis-unstable/src/commands/cluster-setslot.json54
1 files changed, 54 insertions, 0 deletions
diff --git a/examples/redis-unstable/src/commands/cluster-setslot.json b/examples/redis-unstable/src/commands/cluster-setslot.json
new file mode 100644
index 0000000..d0d4819
--- /dev/null
+++ b/examples/redis-unstable/src/commands/cluster-setslot.json
@@ -0,0 +1,54 @@
1{
2 "SETSLOT": {
3 "summary": "Binds a hash slot to a node.",
4 "complexity": "O(1)",
5 "group": "cluster",
6 "since": "3.0.0",
7 "arity": -4,
8 "container": "CLUSTER",
9 "function": "clusterCommand",
10 "command_flags": [
11 "NO_ASYNC_LOADING",
12 "ADMIN",
13 "STALE"
14 ],
15 "arguments": [
16 {
17 "name": "slot",
18 "type": "integer"
19 },
20 {
21 "name": "subcommand",
22 "type": "oneof",
23 "arguments": [
24 {
25 "name": "importing",
26 "display": "node-id",
27 "type": "string",
28 "token": "IMPORTING"
29 },
30 {
31 "name": "migrating",
32 "display": "node-id",
33 "type": "string",
34 "token": "MIGRATING"
35 },
36 {
37 "name": "node",
38 "display": "node-id",
39 "type": "string",
40 "token": "NODE"
41 },
42 {
43 "name": "stable",
44 "type": "pure-token",
45 "token": "STABLE"
46 }
47 ]
48 }
49 ],
50 "reply_schema": {
51 "const": "OK"
52 }
53 }
54}