@@ -687,6 +687,7 @@ extension ValkeyConnectionProtocol {
687
687
/// * [String]: If the epoch was incremented.
688
688
/// * [String]: If the node already has the greatest config epoch in the cluster.
689
689
@inlinable
690
+ @discardableResult
690
691
public func clusterBumpepoch( ) async throws -> ByteBuffer {
691
692
try await send ( command: CLUSTER . BUMPEPOCH ( ) )
692
693
}
@@ -698,6 +699,7 @@ extension ValkeyConnectionProtocol {
698
699
/// - Complexity: O(N) where N is the number of failure reports
699
700
/// - Response: [Integer]: The number of active failure reports for the node.
700
701
@inlinable
702
+ @discardableResult
701
703
public func clusterCountFailureReports< NodeId: RESPStringRenderable > ( nodeId: NodeId ) async throws -> Int {
702
704
try await send ( command: CLUSTER . COUNTFAILUREREPORTS ( nodeId: nodeId) )
703
705
}
@@ -709,6 +711,7 @@ extension ValkeyConnectionProtocol {
709
711
/// - Complexity: O(1)
710
712
/// - Response: [Integer]: The number of keys in the specified hash slot.
711
713
@inlinable
714
+ @discardableResult
712
715
public func clusterCountkeysinslot( slot: Int ) async throws -> Int {
713
716
try await send ( command: CLUSTER . COUNTKEYSINSLOT ( slot: slot) )
714
717
}
@@ -770,6 +773,7 @@ extension ValkeyConnectionProtocol {
770
773
/// - Complexity: O(N) where N is the number of requested keys
771
774
/// - Response: [Array]: An array with up to count elements.
772
775
@inlinable
776
+ @discardableResult
773
777
public func clusterGetkeysinslot( slot: Int , count: Int ) async throws -> RESPToken . Array {
774
778
try await send ( command: CLUSTER . GETKEYSINSLOT ( slot: slot, count: count) )
775
779
}
@@ -781,6 +785,7 @@ extension ValkeyConnectionProtocol {
781
785
/// - Complexity: O(1)
782
786
/// - Response: [Array]: Helpful text about subcommands.
783
787
@inlinable
788
+ @discardableResult
784
789
public func clusterHelp( ) async throws -> RESPToken . Array {
785
790
try await send ( command: CLUSTER . HELP ( ) )
786
791
}
@@ -792,6 +797,7 @@ extension ValkeyConnectionProtocol {
792
797
/// - Complexity: O(1)
793
798
/// - Response: [String]: A map between named fields and values in the form of <field>:<value> lines separated by newlines composed by the two bytes CRLF
794
799
@inlinable
800
+ @discardableResult
795
801
public func clusterInfo( ) async throws -> ByteBuffer {
796
802
try await send ( command: CLUSTER . INFO ( ) )
797
803
}
@@ -803,6 +809,7 @@ extension ValkeyConnectionProtocol {
803
809
/// - Complexity: O(N) where N is the number of bytes in the key
804
810
/// - Response: [Integer]: The hash slot number for the specified key
805
811
@inlinable
812
+ @discardableResult
806
813
public func clusterKeyslot< Key: RESPStringRenderable > ( _ key: Key ) async throws -> Int {
807
814
try await send ( command: CLUSTER . KEYSLOT ( key) )
808
815
}
@@ -814,6 +821,7 @@ extension ValkeyConnectionProtocol {
814
821
/// - Complexity: O(N) where N is the total number of Cluster nodes
815
822
/// - Response: [Array]: An array of cluster links and their attributes.
816
823
@inlinable
824
+ @discardableResult
817
825
public func clusterLinks( ) async throws -> RESPToken . Array {
818
826
try await send ( command: CLUSTER . LINKS ( ) )
819
827
}
@@ -837,6 +845,7 @@ extension ValkeyConnectionProtocol {
837
845
/// - Complexity: O(1)
838
846
/// - Response: [String]: The node id.
839
847
@inlinable
848
+ @discardableResult
840
849
public func clusterMyid( ) async throws -> ByteBuffer {
841
850
try await send ( command: CLUSTER . MYID ( ) )
842
851
}
@@ -848,6 +857,7 @@ extension ValkeyConnectionProtocol {
848
857
/// - Complexity: O(1)
849
858
/// - Response: [String]: The node's shard id.
850
859
@inlinable
860
+ @discardableResult
851
861
public func clusterMyshardid( ) async throws -> ByteBuffer {
852
862
try await send ( command: CLUSTER . MYSHARDID ( ) )
853
863
}
@@ -859,6 +869,7 @@ extension ValkeyConnectionProtocol {
859
869
/// - Complexity: O(N) where N is the total number of Cluster nodes
860
870
/// - Response: [String]: The serialized cluster configuration.
861
871
@inlinable
872
+ @discardableResult
862
873
public func clusterNodes( ) async throws -> ByteBuffer {
863
874
try await send ( command: CLUSTER . NODES ( ) )
864
875
}
@@ -870,6 +881,7 @@ extension ValkeyConnectionProtocol {
870
881
/// - Complexity: O(N) where N is the number of replicas.
871
882
/// - Response: [Array]: A list of replica nodes replicating from the specified primary node provided in the same format used by CLUSTER NODES.
872
883
@inlinable
884
+ @discardableResult
873
885
public func clusterReplicas< NodeId: RESPStringRenderable > ( nodeId: NodeId ) async throws -> RESPToken . Array {
874
886
try await send ( command: CLUSTER . REPLICAS ( nodeId: nodeId) )
875
887
}
@@ -933,6 +945,7 @@ extension ValkeyConnectionProtocol {
933
945
/// - Complexity: O(N) where N is the total number of cluster nodes
934
946
/// - Response: [Array]: A nested list of a map of hash ranges and shard nodes describing individual shards.
935
947
@inlinable
948
+ @discardableResult
936
949
public func clusterShards( ) async throws -> CLUSTER . SHARDS . Response {
937
950
try await send ( command: CLUSTER . SHARDS ( ) )
938
951
}
@@ -945,6 +958,7 @@ extension ValkeyConnectionProtocol {
945
958
/// - Complexity: O(N) where N is the number of replicas.
946
959
/// - Response: [Array]: A list of replica nodes replicating from the specified primary node provided in the same format used by CLUSTER NODES.
947
960
@inlinable
961
+ @discardableResult
948
962
public func clusterSlaves< NodeId: RESPStringRenderable > ( nodeId: NodeId ) async throws -> RESPToken . Array {
949
963
try await send ( command: CLUSTER . SLAVES ( nodeId: nodeId) )
950
964
}
@@ -956,6 +970,7 @@ extension ValkeyConnectionProtocol {
956
970
/// - Complexity: O(N) where N is the total number of slots based on arguments. O(N*log(N)) with ORDERBY subcommand.
957
971
/// - Response: [Array]: Array of nested arrays, where the inner array element represents a slot and its respective usage statistics.
958
972
@inlinable
973
+ @discardableResult
959
974
public func clusterSlotStats( filter: CLUSTER . SLOTSTATS . Filter ) async throws -> RESPToken . Array {
960
975
try await send ( command: CLUSTER . SLOTSTATS ( filter: filter) )
961
976
}
@@ -970,6 +985,7 @@ extension ValkeyConnectionProtocol {
970
985
/// - Complexity: O(N) where N is the total number of Cluster nodes
971
986
/// - Response: [Array]: Nested list of slot ranges with networking information.
972
987
@inlinable
988
+ @discardableResult
973
989
public func clusterSlots( ) async throws -> RESPToken . Array {
974
990
try await send ( command: CLUSTER . SLOTS ( ) )
975
991
}
0 commit comments