RedisObject provides a 'pythonic' interface to the Redis key-value database system (http://code.google.com/p/redis/). It provides -
- Interaction directly at the Redis protocol and command level
- A 'data-mapping' layer which allows implements 'python-like' semantics for scalars/lists/sets over the Redis protocol and allows non-text types to be stored transparently
- An 'object-mapping' layer which allows complex remote-objects and relations to be implemented
This allows Redis to be used as a remote 'data-server' in (hopefully) a very transparent & idiomatic way from Python.
>>> from RedisObject import * >>> r = RedisConnection() >>> l1 = RedisList(r,key="l1",value=["a","b","c"]) >>> for x in l1: ... print x a b c >>> l1 += ['x','y','z']