redis-py-cluster

Python cluster client for the official redis cluster. Redis 3.0+.

Github星跟蹤圖

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 a lot of added functionality. The original source can be found at https://github.com/antirez/redis-rb-cluster

Build Status Coverage Status PyPI version

The branch master will always contain the latest unstable/development code that has been merged from Pull Requests. Use the latest commit from master branch on your own risk, there is no guarantees of compatibility or stability of non tagged commits on the master branch. Only tagged releases on the master branch is considered stable for use.

Documentation

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

This Readme contains a reduced version of the full documentation.

Upgrading instructions between each released version can be found here

Changelog for next release and all older releases can be found here

Installation

Latest stable release from pypi

$ pip install redis-py-cluster

This major version of redis-py-cluster supports redis-py>=3.0.0,<3.4.0.

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 RedisCluster

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

>>> rc = RedisCluster(startup_nodes=startup_nodes, decode_responses=True)

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

License & Authors

Copyright (c) 2013-2019 Johan Andersson

MIT (See docs/License.txt file)

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

主要指標

概覽
名稱與所有者Grokzen/redis-py-cluster
主編程語言Python
編程語言Makefile (語言數: 3)
平台
許可證MIT License
所有者活动
創建於2013-05-21 06:41:34
推送於2023-08-24 14:35:55
最后一次提交2022-03-12 12:50:41
發布數19
最新版本名稱2.1.3 (發布於 )
第一版名稱0.1.0-stable (發布於 )
用户参与
星數1.1k
關注者數51
派生數312
提交數744
已啟用問題?
問題數289
打開的問題數20
拉請求數123
打開的拉請求數11
關閉的拉請求數77
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?