Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Plugin for django-redis that supports Redis Sentinel

Notifications You must be signed in to change notification settings

lamoda/django-sentinel

 
 

Repository files navigation

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",
            }
        }
    }

About

Plugin for django-redis that supports Redis Sentinel

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.8%
  • Shell 2.2%