Redis 存字符串返回的却是byte

 r = redis.StrictRedis(host='127.0.0.1', port=6379, password='123456',
                        db=1, decode_responses=True)
        cookie_str = r.get('gs_cookie')

用这种连接就可以了

http://www.waitingfy.com/archives/4599

4599

Leave a Reply

Name and Email Address are required fields.
Your email will not be published or shared with third parties.