We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9eeed1 commit e886a77Copy full SHA for e886a77
cluster_commands.go
@@ -3,6 +3,7 @@ package redis
3
import "context"
4
5
type ClusterCmdable interface {
6
+ ClusterMyID(ctx context.Context) *StringCmd
7
ClusterMyShardID(ctx context.Context) *StringCmd
8
ClusterSlots(ctx context.Context) *ClusterSlotsCmd
9
ClusterShards(ctx context.Context) *ClusterShardsCmd
@@ -29,6 +30,12 @@ type ClusterCmdable interface {
29
30
ReadWrite(ctx context.Context) *StatusCmd
31
}
32
33
+func (c cmdable) ClusterMyID(ctx context.Context) *StringCmd {
34
+ cmd := NewStringCmd(ctx, "cluster", "myid")
35
+ _ = c(ctx, cmd)
36
+ return cmd
37
+}
38
+
39
func (c cmdable) ClusterMyShardID(ctx context.Context) *StringCmd {
40
cmd := NewStringCmd(ctx, "cluster", "myshardid")
41
_ = c(ctx, cmd)
0 commit comments