Python client for Cluster of Redis key-value store
Project description
a Python interface to a Cluster of Redis key-value store.
## Travis CI
Currently, rediscluster-py is being tested via travis ci for python version 2.6, 2.7 and 3.2: [![Build Status](https://secure.travis-ci.org/salimane/rediscluster-py.png?branch=master)](http://travis-ci.org/salimane/rediscluster-py)
## Installation
$ sudo pip install rediscluster
or alternatively (you really should be using pip though):
$ sudo easy_install rediscluster
From source:
$ sudo python setup.py install
## Running Tests
$ git clone https://github.com/salimane/rediscluster-py.git $ cd rediscluster-py $ vi tests/config.py $ ./run_tests
## Getting Started
>>> import rediscluster >>> cluster = { ... 'nodes' : { ... 'node_1' : {'host' : '127.0.0.1', 'port' : 63791}, ... 'node_2' : {'host' : '127.0.0.1', 'port' : 63792}, ... 'node_5' : {'host' : '127.0.0.1', 'port' : 63795}, ... 'node_6' : {'host' : '127.0.0.1', 'port' : 63796} ... }, ... 'master_of' : { ... 'node_1' : 'node_6', #node_6 slaveof node_1 in redis6.conf ... 'node_2' : 'node_5' #node_5 slaveof node_2 in redis5.conf ... }, ... 'default_node' : 'node_1' ... } >>> r = rediscluster.StrictRedis(cluster=cluster, db=0) >>> r.set('foo', 'bar') True >>> r.get('foo') 'bar'
## Information
Code: git clone git://github.com/salimane/rediscluster-py.git
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for rediscluster-0.1.2.win32-py3.2.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3fcd539a17323a7af4e42a3d60a7ac07dcbc2a1f91154808a59fe633f457b31 |
|
MD5 | 76b206e1a9b30da6605e9c4a5f2c847e |
|
BLAKE2b-256 | 1fce010ac367dea947055535789edf7da535aac39d1de8e422e075e1b4b0d5de |
Hashes for rediscluster-0.1.2.win32-py2.7.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15fa64f96b7bba7b28155a54f15b240aa3a3727fc22b58591654fc0983619d04 |
|
MD5 | 5809a68d6d24707c4f12894b2ee28abf |
|
BLAKE2b-256 | 857d443038d3cb0679ae48eafc266d654496d988145302115e086e260e252b72 |