The Chronicles of Redict
Represent Python dictionaries in Redis.
Introduction
At the moment Redict is far, far from complete. It has basic functionality for reading/writing a dict to redis while keeping its structure in place. It works for dicts and lists inside dicts recursively.
For example:
{
'key': 'value',
'dictionary': {
'key1': 'value1',
'key2': 'value2'
},
'list': [
'item1',
'item2'
]
})
will be represented in redis by:
1) "key"
2) "value"
3) "dictionary:key1"
4) "value1"
5) "dictionary:key2"
6) "value2"
7) "list:0"
8) "item1"
9) "list:1"
10) "item2"