1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-31 05:04:23 +03:00

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

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
}