Skip to main content

Base functionality for accessing/modifying data in Redis

Project description

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

|Version| |Downloads| |Status| |Coverage| |License|

Installation
------------
``sprockets.clients.redis`` is available on the
`Python Package Index <https://pypi.python.org/pypi/sprockets.clients.redis>`_
and can be installed via ``pip`` or ``easy_install``:

.. code:: bash

pip install sprockets.clients.redis

Documentation
-------------
http://sprockets-clients-redis.readthedocs.org/en/latest/

Requirements
------------
.. include:: requirements.txt

Example
-------
This examples demonstrates how to use a sharded Redis connection
in ``sprockets.clients.redis`` by ...

.. code:: python

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

.. |Version| image:: https://badge.fury.io/py/sprockets.clients.redis.svg?
:target: http://badge.fury.io/py/sprockets.clients.redis

.. |Status| image:: https://travis-ci.org/sprockets/sprockets.clients.redis.svg?branch=master
:target: https://travis-ci.org/sprockets/sprockets.clients.redis

.. |Coverage| image:: https://img.shields.io/coveralls/sprockets/sprockets.clients.redis.svg?
:target: https://coveralls.io/r/sprockets/sprockets.clients.redis

.. |Downloads| image:: https://pypip.in/d/sprockets.clients.redis/badge.svg?
:target: https://pypi.python.org/pypi/sprockets.clients.redis

.. |License| image:: https://pypip.in/license/sprockets.clients.redis/badge.svg?
:target: http://sprockets-clients-redis.readthedocs.org/en/latest/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sprockets.clients.redis-2.0.0.tar.gz (8.6 kB view details)

Uploaded Source

File details

Details for the file sprockets.clients.redis-2.0.0.tar.gz.

File metadata

File hashes

Hashes for sprockets.clients.redis-2.0.0.tar.gz
Algorithm Hash digest
SHA256 a84944e9633bbc42b1967a50ca325ce7776a05ebb3764248646f8662d6001012
MD5 384c9d53426629801a096f43c6c10a27
BLAKE2b-256 0e1dd27dc4c470978daf0753b12bbc40fae9802164e370e69541b9c8b4b4c5df

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page