mirror of
https://github.com/kennethreitz-archive/redi.git
synced 2026-06-05 23:40:18 +00:00
536fadaba40711b456a0885e5024f00a2cbc6565
Redi: Redis Awesomeness
=======================
**Warning:** this may or may not be a good idea.
I'm certainly not an efficiency expert. I just want to be able to do things easily.
Ideas
-----
- Offer limited type-specific search.
- Treat objects as dicts.
- Offer fileobject-like interface to values
+ useful for iterating
Everything should be serialized to JSON by default. Configurable.
Example usage ::
from redisalchemy import RList, RSet, RString, search, find
students = RList('dashboard:students')
students.append(dict(blah='blah'))
students.append(someobject)
students.contain('value')
#
students.any_contain('value')
#
students.any_contain_any('value')
# list of lists
# list of dicts (keys)
for (i, student) in enumerate(students):
students[i] = srcub(student)
Languages
Python
100%