1
0
mirror of https://github.com/redis/go-redis.git synced 2025-04-17 20:17:02 +03:00

Merge pull request #1400 from alonana/master

handle memory usage command arguments
This commit is contained in:
Vladimir Mihailenco 2020-07-09 11:55:32 +03:00
commit 6b9f61cf75

View File

@ -66,7 +66,13 @@ func cmdFirstKeyPos(cmd Cmder, info *CommandInfo) int {
return 0
case "publish":
return 1
case "memory":
// https://github.com/redis/redis/issues/7493
if cmd.stringArg(1) == "usage" {
return 2
}
}
if info == nil {
return 0
}