pipe = r.pipeline()
for availability in availabilities:
    keys = [availability['EventId']]
args = [availability['MsgCode']]
update_hash(keys=keys, args=args, client=pipe)
pipe.execute()
Redis: the best way to get all hash values