commands: add cluster reset function.

This commit is contained in:
Anatolii Mihailenco 2015-12-21 18:53:02 +02:00
parent 781f7f803d
commit e335934332
1 changed files with 12 additions and 0 deletions

View File

@ -1666,6 +1666,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