Redis-cluster plugin for Django
Project description
dedis-cluster
redis-cluster plugin for django
基于redis-py-cluster,实现了使用redis集群作为django缓存的backend
安装
- 源码安装
git clone https://github.com/feiwencaho/dedis-cluster.git
cd dedis-cluster
python setup.py install
- pip安装
pip install dedis-cluster
使用
在settings.py中作如下配置
CACHES = {
'default': {
'BACKEND': 'dedis_cluster.cache.RedisClusterCache',
# your redis-cluster nodes
"LOCATION": [
"redis://192.168.1.4:7000/0",
"redis://192.168.1.4:7001/0",
"redis://192.168.1.4:7002/0",
"redis://192.168.1.4:7003/0",
],
'OPTIONS': {
"CLIENT_CLASS": "dedis_cluster.client.DefaultClient",
}
}
}
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
dedis-cluster-1.0.2.tar.gz
(7.8 kB
view details)
Built Distribution
File details
Details for the file dedis-cluster-1.0.2.tar.gz
.
File metadata
- Download URL: dedis-cluster-1.0.2.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
ce8510cdf8bc710befe05f1ec8b51d748031c88265573a648326030fcc45b2f4
|
|
MD5 |
caaa797b2d32579ea154e4aa8f150237
|
|
BLAKE2b-256 |
cceaa5115df85aa98279892291e8579a9140b9487c3c24424b57211757a42bed
|
File details
Details for the file dedis_cluster-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: dedis_cluster-1.0.2-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
f1eee72fdfa36195c195613e766be966348d7ec1b991783cbf8720fbcbeafb66
|
|
MD5 |
0004959f3c4d447f5e798c84acc9ee6e
|
|
BLAKE2b-256 |
0bd5ce871ca44fe4562482d237c30326dcd36f40c502ffb9282250e72d76cc26
|