Merge pull request #4027 from liubin/add-redis-username
Add username to create redis client
This commit is contained in:
commit
b0276a2793
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue