I played around with flask microframework, and wanted to cache some stats in redis. Let's say I have this dict:
mydict = {}
mydict["test"] = "test11"
I saved it to redis with
redis.hmset("test:key", mydict)
However after restore
stored = redis.hgetall("test:key")
print(str(stored))
I see weird {b'test': b'test11'}
so stored.get("test")
gives me None
mydict
str method result looks fine {'test': 'test11'}
. So, why this binary marker added to restored data? I also checked in redis-cli and don't see explicit b markers there. Something wrong with hgetall?