diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2017-10-09 15:22:20 -0700 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2017-10-09 15:22:20 -0700 |
commit | 5449c72d05c74d515bfc9457eabe65550107bc4c (patch) | |
tree | bac90e9f7481d72a742cf8ed2ee1cf790e64482e | |
parent | 9858a090ad0c01f7fa00ba9e04a655f4f91598d6 (diff) | |
parent | 024ea5221c4c8237cb36a82ef1675886963b3d5e (diff) | |
download | redis-py-5449c72d05c74d515bfc9457eabe65550107bc4c.tar.gz |
Merge branch 'pr/885'
-rw-r--r-- | README.rst | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -43,6 +43,15 @@ Getting Started >>> r.get('foo') 'bar' +By default, all responses are returned as `bytes` in Python 3 and `str` in +Python 2. The user is responsible for decoding to Python 3 strings or Python 2 +unicode objects. + +If **all** string responses from a client should be decoded, the user can +specify `decode_responses=True` to `StrictRedis.__init__`. In this case, any +Redis command that returns a string type will be decoded with the `encoding` +specified. + API Reference ------------- |