Skip to content

Commit

Permalink
Merge pull request redis#223 from anmic/feature/cluster-reset
Browse files Browse the repository at this point in the history
commands: add cluster reset function.
  • Loading branch information
vmihailenco committed Dec 22, 2015
2 parents ee7c501 + e335934 commit 2be2924
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2be2924

Please sign in to comment.