mirror of https://github.com/go-redis/redis.git
set key to lower for cmdsInfoCache.Get()
This commit is contained in:
parent
726ddef6f5
commit
b32ffae255
|
@ -2006,6 +2006,12 @@ func (c *cmdsInfoCache) Get() (map[string]*CommandInfo, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
for key := range cmds {
|
||||||
|
lowerKey := internal.ToLower(key)
|
||||||
|
if key != lowerKey {
|
||||||
|
cmds[lowerKey] = cmds[key]
|
||||||
|
}
|
||||||
|
}
|
||||||
c.cmds = cmds
|
c.cmds = cmds
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue