From e335934332e0e748414fa8a3c85e99d2c9567260 Mon Sep 17 00:00:00 2001 From: Anatolii Mihailenco Date: Mon, 21 Dec 2015 18:53:02 +0200 Subject: [PATCH] commands: add cluster reset function. --- commands.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/commands.go b/commands.go index 8b7a53e..420cb71 100644 --- a/commands.go +++ b/commands.go @@ -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