feat(redis): add REDIS_USERNAME support for Redis ACL

This commit is contained in:
Dounx
2026-02-04 18:48:04 +08:00
committed by lyingbug
parent c2cdc16712
commit 6e03f1ea79
8 changed files with 18 additions and 2 deletions
+1
View File
@@ -238,6 +238,7 @@ func initRedisClient() (*redis.Client, error) {
client := redis.NewClient(&redis.Options{
Addr: os.Getenv("REDIS_ADDR"),
Username: os.Getenv("REDIS_USERNAME"),
Password: os.Getenv("REDIS_PASSWORD"),
DB: db,
})