mirror of
https://github.com/redis/go-redis.git
synced 2025-06-12 14:21:52 +03:00
Merge pull request #223 from anmic/feature/cluster-reset
commands: add cluster reset function.
This commit is contained in:
12
commands.go
12
commands.go
@ -1674,6 +1674,18 @@ func (c *commandable) ClusterReplicate(nodeID string) *StatusCmd {
|
||||
return cmd
|
||||
}
|
||||
|
||||
func (c *commandable) ClusterResetSoft() *StatusCmd {
|
||||
cmd := newKeylessStatusCmd("CLUSTER", "reset", "soft")
|
||||
c.Process(cmd)
|
||||
return cmd
|
||||
}
|
||||
|
||||
func (c *commandable) ClusterResetHard() *StatusCmd {
|
||||
cmd := newKeylessStatusCmd("CLUSTER", "reset", "hard")
|
||||
c.Process(cmd)
|
||||
return cmd
|
||||
}
|
||||
|
||||
func (c *commandable) ClusterInfo() *StringCmd {
|
||||
cmd := NewStringCmd("CLUSTER", "info")
|
||||
cmd._clusterKeyPos = 0
|
||||
|
Reference in New Issue
Block a user