diff options
-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 ------------- |