mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
set key to lower for cmdsInfoCache.Get()
This commit is contained in:
@ -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
|
||||
})
|
||||
|
Reference in New Issue
Block a user