sprockets.clients.redis
Base functionality for accessing/modifying data in Redis. Currently there is only support for interacting with Redis servers in a sharded manner.
That is to say, there are multiple Redis servers we are distributing reads and writes among them based on a consistent hash of the key value we're operating on. This is also known as "Client Side Partitioning".
More information about setting up or managing Redis in this manner can be found on the Redis documentation website: http://redis.io/topics/partitioning
Installation
sprockets.clients.redis
is available on the
Python Package Index
and can be installed via pip
or easy_install
:
pip install sprockets.clients.redis
Documentation
http://sprockets-clients-redis.readthedocs.org/en/latest/
Requirements
Example
This examples demonstrates how to use a sharded Redis connection
in sprockets.clients.redis
by ...
import os
from sprockets import clients.redis
os.environ['REDIS_URI'] = 'redis://localhost/'
shard = clients.redis.ShardedRedisConnection()
shard.set('foo', 1)
value = shard.get('foo')
shard.delete('foo')
Version History
Available at http://sprockets-clients-redis.readthedocs.org/en/latest/history.html