A solution to have lists and dictionaries serialized using redis-py.
To install serialized_redis, simply:
pip install serialized-redis
- set
- get
- rpush
- rpushx
- lrange
- hset
- hget
from serialized_redis import SerializedRedis
redis = SerializedRedis()
redis.set('datas', { 'name': 'Evandro', 'age:': 27 })
type(redis.get('datas')) # It will return a dict