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 hashes)
Built Distribution
Close
Hashes for dedis_cluster-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1eee72fdfa36195c195613e766be966348d7ec1b991783cbf8720fbcbeafb66 |
|
MD5 | 0004959f3c4d447f5e798c84acc9ee6e |
|
BLAKE2b-256 | 0bd5ce871ca44fe4562482d237c30326dcd36f40c502ffb9282250e72d76cc26 |