@@ -28,6 +28,8 @@ public enum CLUSTER {
28
28
/// Assigns new hash slots to a node.
29
29
@_documentation ( visibility: internal)
30
30
public struct ADDSLOTS : ValkeyCommand {
31
+ @inlinable public static var name : String { " CLUSTER ADDSLOTS " }
32
+
31
33
public var slots : [ Int ]
32
34
33
35
@inlinable public init ( slots: [ Int ] ) {
@@ -62,6 +64,8 @@ public enum CLUSTER {
62
64
endSlot. encode ( into: & commandEncoder)
63
65
}
64
66
}
67
+ @inlinable public static var name : String { " CLUSTER ADDSLOTSRANGE " }
68
+
65
69
public var ranges : [ Range ]
66
70
67
71
@inlinable public init ( ranges: [ Range ] ) {
@@ -78,6 +82,8 @@ public enum CLUSTER {
78
82
public struct BUMPEPOCH : ValkeyCommand {
79
83
public typealias Response = ByteBuffer
80
84
85
+ @inlinable public static var name : String { " CLUSTER BUMPEPOCH " }
86
+
81
87
@inlinable public init ( ) {
82
88
}
83
89
@@ -91,6 +97,8 @@ public enum CLUSTER {
91
97
public struct COUNTFAILUREREPORTS < NodeId: RESPStringRenderable > : ValkeyCommand {
92
98
public typealias Response = Int
93
99
100
+ @inlinable public static var name : String { " CLUSTER COUNT-FAILURE-REPORTS " }
101
+
94
102
public var nodeId : NodeId
95
103
96
104
@inlinable public init ( nodeId: NodeId ) {
@@ -107,6 +115,8 @@ public enum CLUSTER {
107
115
public struct COUNTKEYSINSLOT : ValkeyCommand {
108
116
public typealias Response = Int
109
117
118
+ @inlinable public static var name : String { " CLUSTER COUNTKEYSINSLOT " }
119
+
110
120
public var slot : Int
111
121
112
122
@inlinable public init ( slot: Int ) {
@@ -121,6 +131,8 @@ public enum CLUSTER {
121
131
/// Sets hash slots as unbound for a node.
122
132
@_documentation ( visibility: internal)
123
133
public struct DELSLOTS : ValkeyCommand {
134
+ @inlinable public static var name : String { " CLUSTER DELSLOTS " }
135
+
124
136
public var slots : [ Int ]
125
137
126
138
@inlinable public init ( slots: [ Int ] ) {
@@ -155,6 +167,8 @@ public enum CLUSTER {
155
167
endSlot. encode ( into: & commandEncoder)
156
168
}
157
169
}
170
+ @inlinable public static var name : String { " CLUSTER DELSLOTSRANGE " }
171
+
158
172
public var ranges : [ Range ]
159
173
160
174
@inlinable public init ( ranges: [ Range ] ) {
@@ -184,6 +198,8 @@ public enum CLUSTER {
184
198
}
185
199
}
186
200
}
201
+ @inlinable public static var name : String { " CLUSTER FAILOVER " }
202
+
187
203
public var options : Options ?
188
204
189
205
@inlinable public init ( options: Options ? = nil ) {
@@ -198,6 +214,8 @@ public enum CLUSTER {
198
214
/// Deletes all slots information from a node.
199
215
@_documentation ( visibility: internal)
200
216
public struct FLUSHSLOTS : ValkeyCommand {
217
+ @inlinable public static var name : String { " CLUSTER FLUSHSLOTS " }
218
+
201
219
@inlinable public init ( ) {
202
220
}
203
221
@@ -209,6 +227,8 @@ public enum CLUSTER {
209
227
/// Removes a node from the nodes table.
210
228
@_documentation ( visibility: internal)
211
229
public struct FORGET < NodeId: RESPStringRenderable > : ValkeyCommand {
230
+ @inlinable public static var name : String { " CLUSTER FORGET " }
231
+
212
232
public var nodeId : NodeId
213
233
214
234
@inlinable public init ( nodeId: NodeId ) {
@@ -225,6 +245,8 @@ public enum CLUSTER {
225
245
public struct GETKEYSINSLOT : ValkeyCommand {
226
246
public typealias Response = RESPToken . Array
227
247
248
+ @inlinable public static var name : String { " CLUSTER GETKEYSINSLOT " }
249
+
228
250
public var slot : Int
229
251
public var count : Int
230
252
@@ -243,6 +265,8 @@ public enum CLUSTER {
243
265
public struct HELP : ValkeyCommand {
244
266
public typealias Response = RESPToken . Array
245
267
268
+ @inlinable public static var name : String { " CLUSTER HELP " }
269
+
246
270
@inlinable public init ( ) {
247
271
}
248
272
@@ -256,6 +280,8 @@ public enum CLUSTER {
256
280
public struct INFO : ValkeyCommand {
257
281
public typealias Response = ByteBuffer
258
282
283
+ @inlinable public static var name : String { " CLUSTER INFO " }
284
+
259
285
@inlinable public init ( ) {
260
286
}
261
287
@@ -269,6 +295,8 @@ public enum CLUSTER {
269
295
public struct KEYSLOT < Key: RESPStringRenderable > : ValkeyCommand {
270
296
public typealias Response = Int
271
297
298
+ @inlinable public static var name : String { " CLUSTER KEYSLOT " }
299
+
272
300
public var key : Key
273
301
274
302
@inlinable public init ( _ key: Key ) {
@@ -285,6 +313,8 @@ public enum CLUSTER {
285
313
public struct LINKS : ValkeyCommand {
286
314
public typealias Response = RESPToken . Array
287
315
316
+ @inlinable public static var name : String { " CLUSTER LINKS " }
317
+
288
318
@inlinable public init ( ) {
289
319
}
290
320
@@ -296,6 +326,8 @@ public enum CLUSTER {
296
326
/// Forces a node to handshake with another node.
297
327
@_documentation ( visibility: internal)
298
328
public struct MEET < Ip: RESPStringRenderable > : ValkeyCommand {
329
+ @inlinable public static var name : String { " CLUSTER MEET " }
330
+
299
331
public var ip : Ip
300
332
public var port : Int
301
333
public var clusterBusPort : Int ?
@@ -316,6 +348,8 @@ public enum CLUSTER {
316
348
public struct MYID : ValkeyCommand {
317
349
public typealias Response = ByteBuffer
318
350
351
+ @inlinable public static var name : String { " CLUSTER MYID " }
352
+
319
353
@inlinable public init ( ) {
320
354
}
321
355
@@ -329,6 +363,8 @@ public enum CLUSTER {
329
363
public struct MYSHARDID : ValkeyCommand {
330
364
public typealias Response = ByteBuffer
331
365
366
+ @inlinable public static var name : String { " CLUSTER MYSHARDID " }
367
+
332
368
@inlinable public init ( ) {
333
369
}
334
370
@@ -342,6 +378,8 @@ public enum CLUSTER {
342
378
public struct NODES : ValkeyCommand {
343
379
public typealias Response = ByteBuffer
344
380
381
+ @inlinable public static var name : String { " CLUSTER NODES " }
382
+
345
383
@inlinable public init ( ) {
346
384
}
347
385
@@ -355,6 +393,8 @@ public enum CLUSTER {
355
393
public struct REPLICAS < NodeId: RESPStringRenderable > : ValkeyCommand {
356
394
public typealias Response = RESPToken . Array
357
395
396
+ @inlinable public static var name : String { " CLUSTER REPLICAS " }
397
+
358
398
public var nodeId : NodeId
359
399
360
400
@inlinable public init ( nodeId: NodeId ) {
@@ -369,6 +409,8 @@ public enum CLUSTER {
369
409
/// Configure a node as replica of a primary node.
370
410
@_documentation ( visibility: internal)
371
411
public struct REPLICATE < NodeId: RESPStringRenderable > : ValkeyCommand {
412
+ @inlinable public static var name : String { " CLUSTER REPLICATE " }
413
+
372
414
public var nodeId : NodeId
373
415
374
416
@inlinable public init ( nodeId: NodeId ) {
@@ -398,6 +440,8 @@ public enum CLUSTER {
398
440
}
399
441
}
400
442
}
443
+ @inlinable public static var name : String { " CLUSTER RESET " }
444
+
401
445
public var resetType : ResetType ?
402
446
403
447
@inlinable public init ( resetType: ResetType ? = nil ) {
@@ -412,6 +456,8 @@ public enum CLUSTER {
412
456
/// Forces a node to save the cluster configuration to disk.
413
457
@_documentation ( visibility: internal)
414
458
public struct SAVECONFIG : ValkeyCommand {
459
+ @inlinable public static var name : String { " CLUSTER SAVECONFIG " }
460
+
415
461
@inlinable public init ( ) {
416
462
}
417
463
@@ -423,6 +469,8 @@ public enum CLUSTER {
423
469
/// Sets the configuration epoch for a new node.
424
470
@_documentation ( visibility: internal)
425
471
public struct SETCONFIGEPOCH : ValkeyCommand {
472
+ @inlinable public static var name : String { " CLUSTER SET-CONFIG-EPOCH " }
473
+
426
474
public var configEpoch : Int
427
475
428
476
@inlinable public init ( configEpoch: Int ) {
@@ -463,6 +511,8 @@ public enum CLUSTER {
463
511
}
464
512
}
465
513
}
514
+ @inlinable public static var name : String { " CLUSTER SETSLOT " }
515
+
466
516
public var slot : Int
467
517
public var subcommand : Subcommand
468
518
public var timeout : Int ?
@@ -481,6 +531,8 @@ public enum CLUSTER {
481
531
/// Returns the mapping of cluster slots to shards.
482
532
@_documentation ( visibility: internal)
483
533
public struct SHARDS : ValkeyCommand {
534
+ @inlinable public static var name : String { " CLUSTER SHARDS " }
535
+
484
536
@inlinable public init ( ) {
485
537
}
486
538
@@ -494,6 +546,8 @@ public enum CLUSTER {
494
546
public struct SLAVES < NodeId: RESPStringRenderable > : ValkeyCommand {
495
547
public typealias Response = RESPToken . Array
496
548
549
+ @inlinable public static var name : String { " CLUSTER SLAVES " }
550
+
497
551
public var nodeId : NodeId
498
552
499
553
@inlinable public init ( nodeId: NodeId ) {
@@ -588,6 +642,8 @@ public enum CLUSTER {
588
642
}
589
643
public typealias Response = RESPToken . Array
590
644
645
+ @inlinable public static var name : String { " CLUSTER SLOT-STATS " }
646
+
591
647
public var filter : Filter
592
648
593
649
@inlinable public init ( filter: Filter ) {
@@ -604,6 +660,8 @@ public enum CLUSTER {
604
660
public struct SLOTS : ValkeyCommand {
605
661
public typealias Response = RESPToken . Array
606
662
663
+ @inlinable public static var name : String { " CLUSTER SLOTS " }
664
+
607
665
@inlinable public init ( ) {
608
666
}
609
667
@@ -617,6 +675,8 @@ public enum CLUSTER {
617
675
/// Signals that a cluster client is following an -ASK redirect.
618
676
@_documentation ( visibility: internal)
619
677
public struct ASKING : ValkeyCommand {
678
+ @inlinable public static var name : String { " ASKING " }
679
+
620
680
@inlinable public init ( ) {
621
681
}
622
682
@@ -628,6 +688,8 @@ public struct ASKING: ValkeyCommand {
628
688
/// Enables read-only queries for a connection to a Valkey replica node.
629
689
@_documentation ( visibility: internal)
630
690
public struct READONLY : ValkeyCommand {
691
+ @inlinable public static var name : String { " READONLY " }
692
+
631
693
@inlinable public init ( ) {
632
694
}
633
695
@@ -639,6 +701,8 @@ public struct READONLY: ValkeyCommand {
639
701
/// Enables read-write queries for a connection to a Valkey replica node.
640
702
@_documentation ( visibility: internal)
641
703
public struct READWRITE : ValkeyCommand {
704
+ @inlinable public static var name : String { " READWRITE " }
705
+
642
706
@inlinable public init ( ) {
643
707
}
644
708
0 commit comments