forked from mirror/redis
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 {
|
||||
return err
|
||||
}
|
||||
for key := range cmds {
|
||||
lowerKey := internal.ToLower(key)
|
||||
if key != lowerKey {
|
||||
cmds[lowerKey] = cmds[key]
|
||||
}
|
||||
}
|
||||
c.cmds = cmds
|
||||
return nil
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue