I am using redis-py and whenever I store a list or a dict in the cache, running the get function return a string. how do I get back the original datatype?
cache = redis.StrictRedis(host='localhost', port=6379, decode_responses=True)
cache.set("posts",[["bob","My first post"],["mary","My second post"]])
cache.get("post")
>>>"[["bob","My first post"],["mary","My second post"]]"
Is this something that I have to do manually?