提交 c8e61b3e 编写于 作者: N nsantiago2719

clarified the documentation

上级 23de8296
......@@ -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
-------------
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册