mirror of
https://github.com/redis/go-redis.git
synced 2025-08-06 01:35:48 +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":
|
case "publish":
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
case "memory":
|
||||||
|
if cmd.stringArg(1) == "usage" {
|
||||||
|
return 2
|
||||||
|
}
|
||||||
|
|
||||||
if info == nil {
|
if info == nil {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user