问题 I'm using the regular redis package in order to connect my Python code to my Redis server. As part of my code I check if a string object is existed in my Redis server keys. string = 'abcde' if string in redis.keys(): do something.. For some reasons, redis.keys() returns a list with bytes objects, such as [b'abcde'] , while my string is, of course, a str object. I already tried to set charset , encoding and decode_responses in my redis generator, but it did not help. My goal is to insert the