Skip to content

Commit

Permalink
Redis添加用户名支持 (#2575)
Browse files Browse the repository at this point in the history
Co-authored-by: 王飞 <fei.wang@xgo.one>
  • Loading branch information
feiazifeiazi and 王飞 committed Apr 11, 2024
1 parent 57024f8 commit 48101d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sql/engines/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def get_connection(self, db_name=None):
return redis.cluster.RedisCluster(
host=self.host,
port=self.port,
username=self.user,
password=self.password or None,
encoding_errors="ignore",
decode_responses=True,
Expand All @@ -40,6 +41,7 @@ def get_connection(self, db_name=None):
host=self.host,
port=self.port,
db=db_name,
username=self.user,
password=self.password or None,
encoding_errors="ignore",
decode_responses=True,
Expand Down

0 comments on commit 48101d9

Please sign in to comment.