Skip to content

Python cluster client for the official cluster support targeted for redis 3.0

Notifications You must be signed in to change notification settings

quixey/redis-py-cluster

This branch is 364 commits behind Grokzen/redis-py-cluster:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7e5c470 · Apr 9, 2016
Apr 9, 2016
Apr 9, 2016
Apr 3, 2016
Apr 8, 2016
Apr 8, 2016
Mar 29, 2016
Feb 26, 2016
Nov 29, 2015
Mar 29, 2016
Mar 28, 2016
Apr 3, 2016
Mar 28, 2016
Mar 28, 2016
Dec 26, 2014
Apr 3, 2016
Oct 28, 2015

Repository files navigation

redis-py-cluster

This client provides a client for redis cluster that was added in redis 3.0.

This project is a port of redis-rb-cluster by antirez, with alot of added functionality. The original source can be found at https://github.com/antirez/redis-rb-cluster

Build Status Coverage Status PyPI version Code Health

Documentation

All documentation can be found at http://redis-py-cluster.readthedocs.org/en/master

This Readme contains a reduced version of the full documentation.

Upgrading instructions between each released version can be found docs/upgrading.rst

Installation

Latest stable release from pypi

$ pip install redis-py-cluster

Usage example

Small sample script that shows how to get started with RedisCluster. It can also be found in examples/basic.py

>>> from rediscluster import StrictRedisCluster

>>> # Requires at least one node for cluster discovery. Multiple nodes is recommended.
>>> startup_nodes = [{"host": "127.0.0.1", "port": "7000"}]

>>> # Note: decode_responses must be set to True when used with python3
>>> rc = StrictRedisCluster(startup_nodes=startup_nodes, decode_responses=True)

>>> rc.set("foo", "bar")
True
>>> print(rc.get("foo"))
'bar'

License & Authors

Copyright (c) 2013-2016 Johan Andersson

MIT (See docs/License.txt file)

The license should be the same as redis-py (https://github.com/andymccurdy/redis-py)

About

Python cluster client for the official cluster support targeted for redis 3.0

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 79.8%
  • Ruby 16.2%
  • Makefile 4.0%