diff --git a/commands.go b/commands.go index 34f4d2c22..df9d32bb9 100644 --- a/commands.go +++ b/commands.go @@ -167,6 +167,8 @@ type Cmdable interface { CommandGetKeys(ctx context.Context, commands ...interface{}) *StringSliceCmd CommandGetKeysAndFlags(ctx context.Context, commands ...interface{}) *KeyFlagsCmd ClientGetName(ctx context.Context) *StringCmd + ClientNoTouchOn(ctx context.Context) *StatusCmd + ClientNoTouchOff(ctx context.Context) *StatusCmd Echo(ctx context.Context, message interface{}) *StringCmd Ping(ctx context.Context) *StatusCmd Quit(ctx context.Context) *StatusCmd @@ -3144,6 +3146,18 @@ func (c cmdable) ClientKill(ctx context.Context, ipPort string) *StatusCmd { return cmd } +func (c cmdable) ClientNoTouchOn(ctx context.Context) *StatusCmd { + cmd := NewStatusCmd(ctx, "client", "no-touch", "on") + _ = c(ctx, cmd) + return cmd +} + +func (c cmdable) ClientNoTouchOff(ctx context.Context) *StatusCmd { + cmd := NewStatusCmd(ctx, "client", "no-touch", "off") + _ = c(ctx, cmd) + return cmd +} + // ClientKillByFilter is new style syntax, while the ClientKill is old // // CLIENT KILL