Plugin for django-redis that supports Redis Sentinel
Project description
django-sentinel
Plugin for django-redis that supports Redis Sentinel. This is fork of lamoda/django-sentinel deprecated project.
Installation
pip install django-sentinel-sifter
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-sentinel-sifter-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c8e3089dc10af0a48c205afd73d4beb21de31fbddd7ce2d34a89a0bdd07c29e |
|
MD5 | f4b8ec374a4bb693a1dbb2f795d221c0 |
|
BLAKE2b-256 | ab12592ded77cdeeac7a0d5183921f2daafb24193dc5cdfe1d7c1e2029f8dec3 |