@@ -23,8 +23,10 @@ import Foundation
23
23
#endif
24
24
25
25
/// A container for Cluster commands.
26
+ @_documentation ( visibility: internal)
26
27
public enum CLUSTER {
27
28
/// Assigns new hash slots to a node.
29
+ @_documentation ( visibility: internal)
28
30
public struct ADDSLOTS : ValkeyCommand {
29
31
public var slot : [ Int ]
30
32
@@ -38,6 +40,7 @@ public enum CLUSTER {
38
40
}
39
41
40
42
/// Assigns new hash slot ranges to a node.
43
+ @_documentation ( visibility: internal)
41
44
public struct ADDSLOTSRANGE : ValkeyCommand {
42
45
public struct Range : RESPRenderable , Sendable , Hashable {
43
46
@usableFromInline let startSlot : Int
@@ -71,6 +74,7 @@ public enum CLUSTER {
71
74
}
72
75
73
76
/// Advances the cluster config epoch.
77
+ @_documentation ( visibility: internal)
74
78
public struct BUMPEPOCH : ValkeyCommand {
75
79
@inlinable public init ( ) {
76
80
}
@@ -81,6 +85,7 @@ public enum CLUSTER {
81
85
}
82
86
83
87
/// Returns the number of active failure reports active for a node.
88
+ @_documentation ( visibility: internal)
84
89
public struct COUNTFAILUREREPORTS < NodeId: RESPStringRenderable > : ValkeyCommand {
85
90
public typealias Response = Int
86
91
@@ -96,6 +101,7 @@ public enum CLUSTER {
96
101
}
97
102
98
103
/// Returns the number of keys in a hash slot.
104
+ @_documentation ( visibility: internal)
99
105
public struct COUNTKEYSINSLOT : ValkeyCommand {
100
106
public typealias Response = Int
101
107
@@ -111,6 +117,7 @@ public enum CLUSTER {
111
117
}
112
118
113
119
/// Sets hash slots as unbound for a node.
120
+ @_documentation ( visibility: internal)
114
121
public struct DELSLOTS : ValkeyCommand {
115
122
public var slot : [ Int ]
116
123
@@ -124,6 +131,7 @@ public enum CLUSTER {
124
131
}
125
132
126
133
/// Sets hash slot ranges as unbound for a node.
134
+ @_documentation ( visibility: internal)
127
135
public struct DELSLOTSRANGE : ValkeyCommand {
128
136
public struct Range : RESPRenderable , Sendable , Hashable {
129
137
@usableFromInline let startSlot : Int
@@ -157,6 +165,7 @@ public enum CLUSTER {
157
165
}
158
166
159
167
/// Forces a replica to perform a manual failover of its primary.
168
+ @_documentation ( visibility: internal)
160
169
public struct FAILOVER : ValkeyCommand {
161
170
public enum Options : RESPRenderable , Sendable , Hashable {
162
171
case force
@@ -185,6 +194,7 @@ public enum CLUSTER {
185
194
}
186
195
187
196
/// Deletes all slots information from a node.
197
+ @_documentation ( visibility: internal)
188
198
public struct FLUSHSLOTS : ValkeyCommand {
189
199
@inlinable public init ( ) {
190
200
}
@@ -195,6 +205,7 @@ public enum CLUSTER {
195
205
}
196
206
197
207
/// Removes a node from the nodes table.
208
+ @_documentation ( visibility: internal)
198
209
public struct FORGET < NodeId: RESPStringRenderable > : ValkeyCommand {
199
210
public var nodeId : NodeId
200
211
@@ -208,6 +219,7 @@ public enum CLUSTER {
208
219
}
209
220
210
221
/// Returns the key names in a hash slot.
222
+ @_documentation ( visibility: internal)
211
223
public struct GETKEYSINSLOT : ValkeyCommand {
212
224
public typealias Response = RESPToken . Array
213
225
@@ -225,6 +237,7 @@ public enum CLUSTER {
225
237
}
226
238
227
239
/// Returns helpful text about the different subcommands.
240
+ @_documentation ( visibility: internal)
228
241
public struct HELP : ValkeyCommand {
229
242
public typealias Response = RESPToken . Array
230
243
@@ -237,6 +250,7 @@ public enum CLUSTER {
237
250
}
238
251
239
252
/// Returns information about the state of a node.
253
+ @_documentation ( visibility: internal)
240
254
public struct INFO : ValkeyCommand {
241
255
@inlinable public init ( ) {
242
256
}
@@ -247,6 +261,7 @@ public enum CLUSTER {
247
261
}
248
262
249
263
/// Returns the hash slot for a key.
264
+ @_documentation ( visibility: internal)
250
265
public struct KEYSLOT < Key: RESPStringRenderable > : ValkeyCommand {
251
266
public typealias Response = Int
252
267
@@ -262,6 +277,7 @@ public enum CLUSTER {
262
277
}
263
278
264
279
/// Returns a list of all TCP links to and from peer nodes.
280
+ @_documentation ( visibility: internal)
265
281
public struct LINKS : ValkeyCommand {
266
282
public typealias Response = RESPToken . Array
267
283
@@ -274,6 +290,7 @@ public enum CLUSTER {
274
290
}
275
291
276
292
/// Forces a node to handshake with another node.
293
+ @_documentation ( visibility: internal)
277
294
public struct MEET < Ip: RESPStringRenderable > : ValkeyCommand {
278
295
public var ip : Ip
279
296
public var port : Int
@@ -291,6 +308,7 @@ public enum CLUSTER {
291
308
}
292
309
293
310
/// Returns the ID of a node.
311
+ @_documentation ( visibility: internal)
294
312
public struct MYID : ValkeyCommand {
295
313
@inlinable public init ( ) {
296
314
}
@@ -301,6 +319,7 @@ public enum CLUSTER {
301
319
}
302
320
303
321
/// Returns the shard ID of a node.
322
+ @_documentation ( visibility: internal)
304
323
public struct MYSHARDID : ValkeyCommand {
305
324
@inlinable public init ( ) {
306
325
}
@@ -311,6 +330,7 @@ public enum CLUSTER {
311
330
}
312
331
313
332
/// Returns the cluster configuration for a node.
333
+ @_documentation ( visibility: internal)
314
334
public struct NODES : ValkeyCommand {
315
335
@inlinable public init ( ) {
316
336
}
@@ -321,6 +341,7 @@ public enum CLUSTER {
321
341
}
322
342
323
343
/// Lists the replica nodes of a primary node.
344
+ @_documentation ( visibility: internal)
324
345
public struct REPLICAS < NodeId: RESPStringRenderable > : ValkeyCommand {
325
346
public typealias Response = RESPToken . Array
326
347
@@ -336,6 +357,7 @@ public enum CLUSTER {
336
357
}
337
358
338
359
/// Configure a node as replica of a primary node.
360
+ @_documentation ( visibility: internal)
339
361
public struct REPLICATE < NodeId: RESPStringRenderable > : ValkeyCommand {
340
362
public var nodeId : NodeId
341
363
@@ -349,6 +371,7 @@ public enum CLUSTER {
349
371
}
350
372
351
373
/// Resets a node.
374
+ @_documentation ( visibility: internal)
352
375
public struct RESET : ValkeyCommand {
353
376
public enum ResetType : RESPRenderable , Sendable , Hashable {
354
377
case hard
@@ -377,6 +400,7 @@ public enum CLUSTER {
377
400
}
378
401
379
402
/// Forces a node to save the cluster configuration to disk.
403
+ @_documentation ( visibility: internal)
380
404
public struct SAVECONFIG : ValkeyCommand {
381
405
@inlinable public init ( ) {
382
406
}
@@ -387,6 +411,7 @@ public enum CLUSTER {
387
411
}
388
412
389
413
/// Sets the configuration epoch for a new node.
414
+ @_documentation ( visibility: internal)
390
415
public struct SETCONFIGEPOCH : ValkeyCommand {
391
416
public var configEpoch : Int
392
417
@@ -400,6 +425,7 @@ public enum CLUSTER {
400
425
}
401
426
402
427
/// Binds a hash slot to a node.
428
+ @_documentation ( visibility: internal)
403
429
public struct SETSLOT : ValkeyCommand {
404
430
public enum Subcommand : RESPRenderable , Sendable , Hashable {
405
431
case importing( String )
@@ -443,6 +469,7 @@ public enum CLUSTER {
443
469
}
444
470
445
471
/// Returns the mapping of cluster slots to shards.
472
+ @_documentation ( visibility: internal)
446
473
public struct SHARDS : ValkeyCommand {
447
474
@inlinable public init ( ) {
448
475
}
@@ -453,6 +480,7 @@ public enum CLUSTER {
453
480
}
454
481
455
482
/// Lists the replica nodes of a primary node.
483
+ @_documentation ( visibility: internal)
456
484
public struct SLAVES < NodeId: RESPStringRenderable > : ValkeyCommand {
457
485
public typealias Response = RESPToken . Array
458
486
@@ -468,6 +496,7 @@ public enum CLUSTER {
468
496
}
469
497
470
498
/// Return an array of slot usage statistics for slots assigned to the current node.
499
+ @_documentation ( visibility: internal)
471
500
public struct SLOTSTATS : ValkeyCommand {
472
501
public struct FilterSlotsrange : RESPRenderable , Sendable , Hashable {
473
502
@usableFromInline let startSlot : Int
@@ -561,6 +590,7 @@ public enum CLUSTER {
561
590
}
562
591
563
592
/// Returns the mapping of cluster slots to nodes.
593
+ @_documentation ( visibility: internal)
564
594
public struct SLOTS : ValkeyCommand {
565
595
public typealias Response = RESPToken . Array
566
596
@@ -575,6 +605,7 @@ public enum CLUSTER {
575
605
}
576
606
577
607
/// Signals that a cluster client is following an -ASK redirect.
608
+ @_documentation ( visibility: internal)
578
609
public struct ASKING : ValkeyCommand {
579
610
@inlinable public init ( ) {
580
611
}
@@ -585,6 +616,7 @@ public struct ASKING: ValkeyCommand {
585
616
}
586
617
587
618
/// Enables read-only queries for a connection to a Valkey replica node.
619
+ @_documentation ( visibility: internal)
588
620
public struct READONLY : ValkeyCommand {
589
621
@inlinable public init ( ) {
590
622
}
@@ -595,6 +627,7 @@ public struct READONLY: ValkeyCommand {
595
627
}
596
628
597
629
/// Enables read-write queries for a connection to a Valkey replica node.
630
+ @_documentation ( visibility: internal)
598
631
public struct READWRITE : ValkeyCommand {
599
632
@inlinable public init ( ) {
600
633
}
0 commit comments