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
@@ -25,6 +25,7 @@ func NewStreamManager() (interfaces.StreamManager, error) {
ttl := time.Hour // 默认1小时
return NewRedisStreamManager(
os.Getenv("REDIS_ADDR"),
os.Getenv("REDIS_USERNAME"),
os.Getenv("REDIS_PASSWORD"),
db,
os.Getenv("REDIS_PREFIX"),