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
This commit is contained in:
Alon Tamir 2020-07-09 10:25:06 +03:00 committed by GitHub
parent dd5e03f960
commit c41cbf2756
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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
}