# I have the dictionary my_dict my_dict = { \'var1\' : 5 \'var2\' : 9 } r = redis.StrictRedis()
How would I store my_dict and retrieve it w
HMSET is deprecated. You can now use HSET with a dictionary as follows:
import redis r = redis.Redis('localhost') key = "hashexample" queue_entry = { "version":"1.2.3", "tag":"main", "status":"CREATED", "timeout":"30" } r.hset(key,None,None,queue_entry)