I played with flash microframes and wanted to cache some statistics in redis. Let's say I have this dict:
mydict = {} mydict["test"] = "test11"
I saved it for redis using
redis.hmset("test:key", mydict)
However after recovery
stored = redis.hgetall("test:key") print(str(stored))
I see weird {b'test': b'test11'} , so stored.get("test") gives me None
mydict The result of the str method looks great {'test': 'test11'} . So why is this binary marker added to the recovered data? I also checked in redis-cli and don't see explicit b-labels there. Is there something wrong with hgetall?
Tommi
source share