mirror of https://github.com/go-redis/redis.git
Merge pull request #223 from anmic/feature/cluster-reset
commands: add cluster reset function.
This commit is contained in:
commit
2be29240c7
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
|
||||
|
|
Loading…
Reference in New Issue