Skip to content

Commit 1b7eeaa

Browse files
author
Bilal Al
committed
added username for redis async
1 parent a2bdea2 commit 1b7eeaa

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
10.0.0 (XXX XX, XXXX)
1+
10.0.0 (Jun 26, 2024)
22
- Added support for asyncio library
33
- BREAKING CHANGE: Minimum supported Python version is 3.7.16
44

setup.cfg

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
universal = 1
33

44
[metadata]
5-
description-file = README.md
5+
name = splitio_client
6+
description = This SDK is designed to work with Split, the platform for controlled rollouts, which serves features to your users via a Split feature flag to manage your complete customer experience.
7+
long_description = file: README.md
8+
long_description_content_type = text/markdown
69

710
[flake8]
811
max-line-length=100

splitio/storage/adapters/redis.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,7 @@ async def _build_default_client_async(config): # pylint: disable=too-many-local
765765
host = config.get('redisHost', 'localhost')
766766
port = config.get('redisPort', 6379)
767767
database = config.get('redisDb', 0)
768+
username = config.get('redisUsername', None)
768769
password = config.get('redisPassword', None)
769770
socket_timeout = config.get('redisSocketTimeout', None)
770771
socket_connect_timeout = config.get('redisSocketConnectTimeout', None)
@@ -789,6 +790,7 @@ async def _build_default_client_async(config): # pylint: disable=too-many-local
789790
"redis://" + host + ":" + str(port),
790791
db=database,
791792
password=password,
793+
username=username,
792794
max_connections=max_connections,
793795
encoding=encoding,
794796
decode_responses=decode_responses,
@@ -906,6 +908,7 @@ async def _build_sentinel_client_async(config): # pylint: disable=too-many-loca
906908
raise SentinelConfigurationException('redisMasterService must be specified.')
907909

908910
database = config.get('redisDb', 0)
911+
username = config.get('redisUsername', None)
909912
password = config.get('redisPassword', None)
910913
socket_timeout = config.get('redisSocketTimeout', None)
911914
socket_connect_timeout = config.get('redisSocketConnectTimeout', None)
@@ -923,6 +926,7 @@ async def _build_sentinel_client_async(config): # pylint: disable=too-many-loca
923926
sentinel = SentinelAsync(
924927
sentinels,
925928
db=database,
929+
username=username,
926930
password=password,
927931
encoding=encoding,
928932
encoding_errors=encoding_errors,

0 commit comments

Comments
 (0)