mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Merge pull request #1400 from alonana/master
handle memory usage command arguments
This commit is contained in:
@ -66,7 +66,13 @@ func cmdFirstKeyPos(cmd Cmder, info *CommandInfo) int {
|
|||||||
return 0
|
return 0
|
||||||
case "publish":
|
case "publish":
|
||||||
return 1
|
return 1
|
||||||
|
case "memory":
|
||||||
|
// https://github.com/redis/redis/issues/7493
|
||||||
|
if cmd.stringArg(1) == "usage" {
|
||||||
|
return 2
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if info == nil {
|
if info == nil {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user