Skip to main content

Plugin for django-redis that supports Redis Sentinel

Project description

Travis Status

django-sentinel

Plugin for django-redis that supports Redis Sentinel. This is fork of KabbageInc/django-redis-sentinel deprecated project.

Installation

pip install django-sentinel

Usage

Location format: master_name/sentinel_server:port,sentinel_server:port/db_id

In your settings, do something like this:

    CACHES = {
        "default": {
            "BACKEND": "django_redis.cache.RedisCache",
            "LOCATION": "redis_master/sentinel-host1:2639,sentinel-host2:2639/0"
            "OPTIONS": {
                "PASSWORD": 's3cret_passw0rd!',
                "CLIENT_CLASS": "django_sentinel.SentinelClient",
            }
        }
    }

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

django-sentinel-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file django-sentinel-0.1.0.tar.gz.

File metadata

  • Download URL: django-sentinel-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/2.7.16

File hashes

Hashes for django-sentinel-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ba01fcd7a621a85437c74f90b1e560403d73809b3716a445b5f039ea82bdbd7a
MD5 b7953854a4e549097ba1bb4ec7795888
BLAKE2b-256 b6d190024860ade0027c2cf3174ba45d1396a6e3190b4ef00553669592b29023

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