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",
}
}
}
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-sentinel-sifter-0.1.1.tar.gz.
File metadata
- Download URL: django-sentinel-sifter-0.1.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c8e3089dc10af0a48c205afd73d4beb21de31fbddd7ce2d34a89a0bdd07c29e
|
|
| MD5 |
f4b8ec374a4bb693a1dbb2f795d221c0
|
|
| BLAKE2b-256 |
ab12592ded77cdeeac7a0d5183921f2daafb24193dc5cdfe1d7c1e2029f8dec3
|