This program demonstrates how serialize/deserialize Python object as JSON to/from Redis
This program requires:
-
Python 2
-
Redis
./write_py_obj_to_redis.py
to write the python object to Redis../read_py_obj_from_redis.py
to the python object from Redis.
NOTE: You must write the python object to Redis before reading it.
Read http://darmawan-salihun.blogspot.sg/2017/12/storing-python-object-in-redis-brute.html for the big picture explanation. NOTE: The article explains how to store the object via Python's pickle library. It has since been replaced by JSON serialization.