Skip to main content

dedis-cluster

redis-cluster plugin for django

基于redis-py-cluster,实现了使用redis集群作为django缓存的backend

安装

  • 源码安装
git clone https://github.com/feiwencaho/dedis-cluster.git
cd dedis-cluster
python setup.py install
  • pip安装
pip install dedis-cluster

使用

在settings.py中作如下配置

CACHES = {
    'default': {
        'BACKEND': 'dedis_cluster.cache.RedisClusterCache',
        # your redis-cluster nodes
        "LOCATION": [
            "redis://192.168.1.4:7000/0",
            "redis://192.168.1.4:7001/0",
            "redis://192.168.1.4:7002/0",
            "redis://192.168.1.4:7003/0",
        ],
        'OPTIONS': {
            "CLIENT_CLASS": "dedis_cluster.client.DefaultClient",
        }
    }
}

Download files

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

Source Distribution

dedis-cluster-1.0.2.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dedis_cluster-1.0.2-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file dedis-cluster-1.0.2.tar.gz.

File metadata

  • Download URL: dedis-cluster-1.0.2.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for dedis-cluster-1.0.2.tar.gz
Algorithm Hash digest
SHA256 ce8510cdf8bc710befe05f1ec8b51d748031c88265573a648326030fcc45b2f4
MD5 caaa797b2d32579ea154e4aa8f150237
BLAKE2b-256 cceaa5115df85aa98279892291e8579a9140b9487c3c24424b57211757a42bed

See more details on using hashes here.

File details

Details for the file dedis_cluster-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: dedis_cluster-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for dedis_cluster-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f1eee72fdfa36195c195613e766be966348d7ec1b991783cbf8720fbcbeafb66
MD5 0004959f3c4d447f5e798c84acc9ee6e
BLAKE2b-256 0bd5ce871ca44fe4562482d237c30326dcd36f40c502ffb9282250e72d76cc26

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 files

1.0.1

2 files

1.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page