mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-03 02:55:29 +08:00
feat: add Redis username support (#11608)
### What problem does this PR solve? Support for Redis 6+ ACL authentication (username) close #11606 ### Type of change - [x] New Feature (non-breaking change which adds functionality) - [x] Documentation Update
This commit is contained in:
@ -86,6 +86,9 @@ class RedisDB:
|
||||
"db": int(self.config.get("db", 1)),
|
||||
"decode_responses": True,
|
||||
}
|
||||
username = self.config.get("username")
|
||||
if username:
|
||||
conn_params["username"] = username
|
||||
password = self.config.get("password")
|
||||
if password:
|
||||
conn_params["password"] = password
|
||||
|
||||
Reference in New Issue
Block a user