summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2017-10-09 15:22:20 -0700
committerAndy McCurdy <andy@andymccurdy.com>2017-10-09 15:22:20 -0700
commit5449c72d05c74d515bfc9457eabe65550107bc4c (patch)
treebac90e9f7481d72a742cf8ed2ee1cf790e64482e
parent9858a090ad0c01f7fa00ba9e04a655f4f91598d6 (diff)
parent024ea5221c4c8237cb36a82ef1675886963b3d5e (diff)
downloadredis-py-5449c72d05c74d515bfc9457eabe65550107bc4c.tar.gz
Merge branch 'pr/885'
-rw-r--r--README.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index 082cdaa..97604f8 100644
--- a/README.rst
+++ b/README.rst
@@ -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
-------------