About char b prefix in Python3.4.1 client connect to redis

It means it’s a byte string

You can use:

redis.StrictRedis(host="localhost", port=6379, charset="utf-8", decode_responses=True)

using decode_responses=True to make a unicode string.

Leave a Comment