Add username to create redis client

Signed-off-by: bin liu <liubin0329@gmail.com>
This commit is contained in:
bin liu 2023-08-29 16:27:43 +08:00
parent 5f8b59177b
commit b889cc2eb4

View file

@ -525,6 +525,7 @@ func (app *App) createPool(cfg configuration.Redis) *redis.Client {
res := cn.Ping(ctx)
return res.Err()
},
Username: cfg.Username,
Password: cfg.Password,
DB: cfg.DB,
MaxRetries: 3,