Merge pull request #1400 from alonana/master

handle memory usage command arguments
This commit is contained in:
Vladimir Mihailenco 2020-07-09 11:55:32 +03:00
commit 6b9f61cf75
1 changed files with 6 additions and 0 deletions

View File

@ -66,7 +66,13 @@ func cmdFirstKeyPos(cmd Cmder, info *CommandInfo) int {
return 0 return 0
case "publish": case "publish":
return 1 return 1
case "memory":
// https://github.com/redis/redis/issues/7493
if cmd.stringArg(1) == "usage" {
return 2
}
} }
if info == nil { if info == nil {
return 0 return 0
} }