diff options
author | nsantiago2719 <nsantiago2719@gmail.com> | 2017-08-25 15:28:21 +0800 |
---|---|---|
committer | nsantiago2719 <nsantiago2719@gmail.com> | 2017-08-25 15:28:21 +0800 |
commit | c8e61b3efdf0f9400fa27803e36094e24a99fc43 (patch) | |
tree | 9b7eb29738d6f1f7438388debdf889be78170550 | |
parent | 23de82967c7424a5923c45170785216cea29feea (diff) | |
download | redis-py-c8e61b3efdf0f9400fa27803e36094e24a99fc43.tar.gz |
clarified the documentation
-rw-r--r-- | README.rst | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -37,12 +37,15 @@ Getting Started .. code-block:: pycon >>> import redis - >>> r = redis.StrictRedis(host='localhost', port=6379, db=0) #Add `decode_responses=True` if you are using Python 3 + >>> r = redis.StrictRedis(host='localhost', port=6379, db=0) >>> r.set('foo', 'bar') True >>> r.get('foo') 'bar' +By default, the value returned if you are using Python3 are in raw byte strings. +If you want a decoded response you can add `decode_response=True` in `redis.StrictRedis()`. + API Reference ------------- |