diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 22:40:55 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 22:40:55 +0100 |
| commit | 5d8dfe892a2ea89f706ee140c3bdcfd89fe03fda (patch) | |
| tree | 1acdfa5220cd13b7be43a2a01368e80d306473ca /examples/redis-unstable/src/commands/cluster-slots.json | |
| parent | c7ab12bba64d9c20ccd79b132dac475f7bc3923e (diff) | |
| download | crep-5d8dfe892a2ea89f706ee140c3bdcfd89fe03fda.tar.gz | |
Add Redis source code for testing
Diffstat (limited to 'examples/redis-unstable/src/commands/cluster-slots.json')
| -rw-r--r-- | examples/redis-unstable/src/commands/cluster-slots.json | 136 |
1 files changed, 136 insertions, 0 deletions
diff --git a/examples/redis-unstable/src/commands/cluster-slots.json b/examples/redis-unstable/src/commands/cluster-slots.json new file mode 100644 index 0000000..b00cc60 --- /dev/null +++ b/examples/redis-unstable/src/commands/cluster-slots.json | |||
| @@ -0,0 +1,136 @@ | |||
| 1 | { | ||
| 2 | "SLOTS": { | ||
| 3 | "summary": "Returns the mapping of cluster slots to nodes.", | ||
| 4 | "complexity": "O(N) where N is the total number of Cluster nodes", | ||
| 5 | "group": "cluster", | ||
| 6 | "since": "3.0.0", | ||
| 7 | "arity": 2, | ||
| 8 | "container": "CLUSTER", | ||
| 9 | "function": "clusterCommand", | ||
| 10 | "deprecated_since": "7.0.0", | ||
| 11 | "replaced_by": "`CLUSTER SHARDS`", | ||
| 12 | "doc_flags": [ | ||
| 13 | "DEPRECATED" | ||
| 14 | ], | ||
| 15 | "history": [ | ||
| 16 | [ | ||
| 17 | "4.0.0", | ||
| 18 | "Added node IDs." | ||
| 19 | ], | ||
| 20 | [ | ||
| 21 | "7.0.0", | ||
| 22 | "Added additional networking metadata field." | ||
| 23 | ] | ||
| 24 | ], | ||
| 25 | "command_flags": [ | ||
| 26 | "LOADING", | ||
| 27 | "STALE" | ||
| 28 | ], | ||
| 29 | "command_tips": [ | ||
| 30 | "NONDETERMINISTIC_OUTPUT" | ||
| 31 | ], | ||
| 32 | "reply_schema": { | ||
| 33 | "description": "nested list of slot ranges with networking information", | ||
| 34 | "type": "array", | ||
| 35 | "items": { | ||
| 36 | "type": "array", | ||
| 37 | "minItems": 3, | ||
| 38 | "maxItems": 4294967295, | ||
| 39 | "items": [ | ||
| 40 | { | ||
| 41 | "description": "start slot number", | ||
| 42 | "type": "integer" | ||
| 43 | }, | ||
| 44 | { | ||
| 45 | "description": "end slot number", | ||
| 46 | "type": "integer" | ||
| 47 | }, | ||
| 48 | { | ||
| 49 | "type": "array", | ||
| 50 | "description": "Master node for the slot range", | ||
| 51 | "minItems": 4, | ||
| 52 | "maxItems": 4, | ||
| 53 | "items": [ | ||
| 54 | { | ||
| 55 | "description": "endpoint description", | ||
| 56 | "oneOf": [ | ||
| 57 | { | ||
| 58 | "description": "hostname or ip", | ||
| 59 | "type": "string" | ||
| 60 | }, | ||
| 61 | { | ||
| 62 | "description": "unknown type", | ||
| 63 | "type": "null" | ||
| 64 | } | ||
| 65 | ] | ||
| 66 | }, | ||
| 67 | { | ||
| 68 | "description": "port", | ||
| 69 | "type": "integer" | ||
| 70 | }, | ||
| 71 | { | ||
| 72 | "description": "node name", | ||
| 73 | "type": "string" | ||
| 74 | }, | ||
| 75 | { | ||
| 76 | "description": "array of node descriptions", | ||
| 77 | "type": "object", | ||
| 78 | "additionalProperties": false, | ||
| 79 | "properties": { | ||
| 80 | "hostname": { | ||
| 81 | "type": "string" | ||
| 82 | }, | ||
| 83 | "ip": { | ||
| 84 | "type": "string" | ||
| 85 | } | ||
| 86 | } | ||
| 87 | } | ||
| 88 | ] | ||
| 89 | } | ||
| 90 | ], | ||
| 91 | "additionalItems": { | ||
| 92 | "type": "array", | ||
| 93 | "description": "Replica node for the slot range", | ||
| 94 | "minItems": 4, | ||
| 95 | "maxItems": 4, | ||
| 96 | "items": [ | ||
| 97 | { | ||
| 98 | "description": "endpoint description", | ||
| 99 | "oneOf": [ | ||
| 100 | { | ||
| 101 | "description": "hostname or ip", | ||
| 102 | "type": "string" | ||
| 103 | }, | ||
| 104 | { | ||
| 105 | "description": "unknown type", | ||
| 106 | "type": "null" | ||
| 107 | } | ||
| 108 | ] | ||
| 109 | }, | ||
| 110 | { | ||
| 111 | "description": "port", | ||
| 112 | "type": "integer" | ||
| 113 | }, | ||
| 114 | { | ||
| 115 | "description": "node name", | ||
| 116 | "type": "string" | ||
| 117 | }, | ||
| 118 | { | ||
| 119 | "description": "array of node descriptions", | ||
| 120 | "type": "object", | ||
| 121 | "additionalProperties": false, | ||
| 122 | "properties": { | ||
| 123 | "hostname": { | ||
| 124 | "type": "string" | ||
| 125 | }, | ||
| 126 | "ip": { | ||
| 127 | "type": "string" | ||
| 128 | } | ||
| 129 | } | ||
| 130 | } | ||
| 131 | ] | ||
| 132 | } | ||
| 133 | } | ||
| 134 | } | ||
| 135 | } | ||
| 136 | } | ||
