Decode redis responses by default
In python3 redis responses are encoded by default.
This commit is contained in:
parent
880f756eae
commit
e97d350e5a
@ -18,5 +18,5 @@ class RedisConnectionBuilder():
|
|||||||
else:
|
else:
|
||||||
conn = StrictRedis(host=self._config.host, port=self._config.port,
|
conn = StrictRedis(host=self._config.host, port=self._config.port,
|
||||||
db=self._config.db, retry_on_timeout=True,
|
db=self._config.db, retry_on_timeout=True,
|
||||||
socket_timeout=self._config.timeout)
|
socket_timeout=self._config.timeout, decode_responses=True)
|
||||||
return conn
|
return conn
|
||||||
|
@ -23,7 +23,7 @@ class RedisConnection:
|
|||||||
else:
|
else:
|
||||||
conn = StrictRedis(host=self._config.host, port=self._config.port,
|
conn = StrictRedis(host=self._config.host, port=self._config.port,
|
||||||
db=self._config.db, retry_on_timeout=True,
|
db=self._config.db, retry_on_timeout=True,
|
||||||
socket_timeout=self._config.timeout)
|
socket_timeout=self._config.timeout, decode_responses=True)
|
||||||
return conn
|
return conn
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user