Good day to all. There is a question:
from django_redis import get_redis_connection redis = get_redis_connection("default") ls = [{'foo': 15, 'bar': 16}, {'foo': 78, 'bar': 0}, {'foo': 49, 'bar': 7}, {'foo': 1, 'bar': 5}] for item in ls: #TODO: append to redis ... How to add such a structure in redis element by element? To keep the result as:
'some_key': [{'foo': 15, 'bar': 16}, {'foo': 78, 'bar': 0}, {'foo': 49, 'bar': 7}, {'foo': 1, 'bar': 5}]