Merge "Change StrictRedis usage to Redis"

This commit is contained in:
Zuul 2023-08-11 11:10:40 +00:00 committed by Gerrit Code Review
commit 702ea408b2
2 changed files with 6 additions and 2 deletions

View File

@ -0,0 +1,4 @@
---
upgrade:
- |
The minimum redis-py version required is now >= 3.0.0

View File

@ -454,10 +454,10 @@ return 1
if 'sentinel_fallback' in kwargs:
del kwargs['sentinel_fallback']
master_client = sentinel_server.master_for(sentinel_name, **kwargs)
# The master_client is a redis.StrictRedis using a
# The master_client is a redis.Redis using a
# Sentinel managed connection pool.
return master_client
return redis.StrictRedis(**kwargs)
return redis.Redis(**kwargs)
@_handle_failures()
def _start(self):