The only Django MongoDB Cache backend you need.
Project description
The only Django MongoDB Cache backend you need.
Installation and Usage
Install with:
pip install django-mongodb-cash-backend
Add the following to your Django settings:
CACHES = { 'default': { 'BACKEND': 'django_mongodb_cash_backend.MongoDBCache', "LOCATION": "DEFAULT", "TIMEOUT": 86400, "OPTIONS": { "HOST": "MongoDB_host", "PORT": 12345, "USERNAME": "username_if_desired", "PASSWORD": "password_if_needed" }, } }
Tips
On your MongoDB database, you should consider creating an index on the “expires” field. Culling old cache entries will be much faster and performance overall will be improved.
Project details
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-mongodb-cash-backend-2015.11.9.tar.gz
.
File metadata
- Download URL: django-mongodb-cash-backend-2015.11.9.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb3442e0733213c4f75bbb8a1c6b955b7065c281acb24bc7fd0aa1209143ead4 |
|
MD5 | 77c70bce39eca037f6e56a5f64b488e2 |
|
BLAKE2b-256 | 21cb7f8d8d4cc12e71c2e4920172a9058932fca27293e359118d3425c0b2f48e |