From bbcb2b79882052692c5ad23279b45e485cd679a4 Mon Sep 17 00:00:00 2001 From: Tianyi Lin Date: Mon, 23 Jul 2018 19:12:20 +0800 Subject: [PATCH] Supports new style syntax of client kill command --- commands.go | 15 +++++++++++++++ commands_test.go | 6 ++++++ 2 files changed, 21 insertions(+) diff --git a/commands.go b/commands.go index 763c837..dddf8ac 100644 --- a/commands.go +++ b/commands.go @@ -220,6 +220,7 @@ type Cmdable interface { BgRewriteAOF() *StatusCmd BgSave() *StatusCmd ClientKill(ipPort string) *StatusCmd + ClientKillByFilter(keys ...string) *IntCmd ClientList() *StringCmd ClientPause(dur time.Duration) *BoolCmd ConfigGet(parameter string) *SliceCmd @@ -1822,6 +1823,20 @@ func (c *cmdable) ClientKill(ipPort string) *StatusCmd { return cmd } +// ClientKillByFilter is new style synx, while the ClientKill is old +// CLIENT KILL