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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user