From c41cbf275678250965e171c0898211570d65f846 Mon Sep 17 00:00:00 2001 From: Alon Tamir Date: Thu, 9 Jul 2020 10:25:06 +0300 Subject: [PATCH] handle memory usage command arguments See https://github.com/redis/redis/issues/7493 We have to include a special handling for the memory usage command --- command.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/command.go b/command.go index f606accd..9f772ff6 100644 --- a/command.go +++ b/command.go @@ -67,6 +67,11 @@ func cmdFirstKeyPos(cmd Cmder, info *CommandInfo) int { case "publish": return 1 } + case "memory": + if cmd.stringArg(1) == "usage" { + return 2 + } + if info == nil { return 0 }