feat: add REDIS_USERNAME support for asynq client

main
Dounx 2026-02-06 21:05:34 +08:00 committed by lyingbug
parent 66756de19f
commit 548450c170
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ func getAsynqRedisClientOpt() *asynq.RedisClientOpt {
}
opt := &asynq.RedisClientOpt{
Addr: os.Getenv("REDIS_ADDR"),
Username: os.Getenv("REDIS_USERNAME"),
Password: os.Getenv("REDIS_PASSWORD"),
ReadTimeout: 100 * time.Millisecond,
WriteTimeout: 200 * time.Millisecond,