mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
commands.go: Add ClusterKeySlot function.
This commit is contained in:
@ -1698,6 +1698,13 @@ func (c *commandable) ClusterInfo() *StringCmd {
|
||||
return cmd
|
||||
}
|
||||
|
||||
func (c *commandable) ClusterKeySlot(key string) *IntCmd {
|
||||
cmd := NewIntCmd("CLUSTER", "keyslot", key)
|
||||
cmd._clusterKeyPos = 2
|
||||
c.Process(cmd)
|
||||
return cmd
|
||||
}
|
||||
|
||||
func (c *commandable) ClusterFailover() *StatusCmd {
|
||||
cmd := newKeylessStatusCmd("CLUSTER", "failover")
|
||||
c.Process(cmd)
|
||||
|
Reference in New Issue
Block a user