Decode redis responses by default

In python3 redis responses are encoded by default.
This commit is contained in:
manmorjim 2020-02-27 17:19:15 +01:00
parent 880f756eae
commit e97d350e5a
2 changed files with 2 additions and 2 deletions

View File

@ -18,5 +18,5 @@ class RedisConnectionBuilder():
else:
conn = StrictRedis(host=self._config.host, port=self._config.port,
db=self._config.db, retry_on_timeout=True,
socket_timeout=self._config.timeout)
socket_timeout=self._config.timeout, decode_responses=True)
return conn

View File

@ -23,7 +23,7 @@ class RedisConnection:
else:
conn = StrictRedis(host=self._config.host, port=self._config.port,
db=self._config.db, retry_on_timeout=True,
socket_timeout=self._config.timeout)
socket_timeout=self._config.timeout, decode_responses=True)
return conn