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",
}
}
}
Metadata
Release files for django-sentinel 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-sentinel-0.1.0.tar.gz | 3.3 kB | Details |
Release files / django-sentinel-0.1.0.tar.gz
| Download URL | django-sentinel-0.1.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba01fcd7a621a85437c74f90b1e560403d73809b3716a445b5f039ea82bdbd7a
|
|
BLAKE2b-256 checksum How to use checksums |
b6d190024860ade0027c2cf3174ba45d1396a6e3190b4ef00553669592b29023
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|