fix: redis username not working in redis v7 (#4632)

This commit is contained in:
Kevin Wan
2025-02-08 12:21:35 +08:00
committed by GitHub
parent ca797ed22c
commit 24073969a1
3 changed files with 4 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ func getClient(r *Redis) (*red.Client, error) {
}
store := red.NewClient(&red.Options{
Addr: r.Addr,
Username: r.User,
Password: r.Pass,
DB: defaultDatabase,
MaxRetries: maxRetries,