mirror of
https://github.com/redis/go-redis.git
synced 2025-08-07 12:42:55 +03:00
cluster: preload commands info
This commit is contained in:
@@ -653,6 +653,8 @@ func NewClusterClient(opt *ClusterOptions) *ClusterClient {
|
||||
c.init()
|
||||
|
||||
_, _ = c.state.Reload()
|
||||
_, _ = c.cmdsInfoCache.Get()
|
||||
|
||||
if opt.IdleCheckFrequency > 0 {
|
||||
go c.reaper(opt.IdleCheckFrequency)
|
||||
}
|
||||
|
Reference in New Issue
Block a user