Change StrictRedis usage to Redis

The StrictRedis class is only an alias for
Redis in >= 3.0.0

Change-Id: I89146dcf63cf984410f29b31ac2492f5ccaf3468
This commit is contained in:
Tobias Urdin 2022-09-28 12:32:33 +02:00
parent 7698c582f3
commit 378566dab8
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):