mirror of https://github.com/go-redis/redis.git
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:
parent
dd5e03f960
commit
c41cbf2756
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue