mirror of
https://github.com/kennethreitz-archive/redi.git
synced 2026-06-05 23:40:18 +00:00
cd8ddd535c203f679d2c1b4d89cd5b6f289f4d2b
RedisAlchemy: Redis Awesomeness
===============================
**Warning:** this may or may not be a good idea.
I'm certianly 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%