keep a number of idle connections around

This commit is contained in:
Andre Medeiros 2021-07-13 19:54:53 -04:00
parent b98f8345a5
commit 47ee2a6e52

View file

@ -40,6 +40,7 @@ func NewRedisClient(ctx context.Context) (*redis.Client, error) {
if err != nil {
return nil, err
}
opt.MinIdleConns = 16
client := redis.NewClient(opt)
if err := client.Ping(ctx).Err(); err != nil {