main
kzkzzzz 2023-05-24 21:45:39 +08:00
parent 15d2d9ff95
commit 78557716f6
1 changed files with 1 additions and 0 deletions

View File

@ -109,6 +109,7 @@ func New(config *Config) (*MyRedis, error) {
MinIdleConns: config.MinIdleConn, MinIdleConns: config.MinIdleConn,
MaxConnAge: maxConnAge, MaxConnAge: maxConnAge,
IdleTimeout: idleTimeout, IdleTimeout: idleTimeout,
DialTimeout: time.Second * 2,
}) })
ctx := context.Background() ctx := context.Background()