Merge pull request #211 from go-redis/feature/cluster-forget

Added CLUSTER FORGET command
This commit is contained in:
Vladimir Mihailenco 2015-12-10 09:24:44 +02:00
commit fb4fc5e880
1 changed files with 6 additions and 0 deletions

View File

@ -1662,6 +1662,12 @@ func (c *commandable) ClusterMeet(host, port string) *StatusCmd {
return cmd
}
func (c *commandable) ClusterForget(nodeID string) *StatusCmd {
cmd := newKeylessStatusCmd("CLUSTER", "forget", nodeID)
c.Process(cmd)
return cmd
}
func (c *commandable) ClusterReplicate(nodeID string) *StatusCmd {
cmd := newKeylessStatusCmd("CLUSTER", "replicate", nodeID)
c.Process(cmd)