Provides caching ability through MongoDB. Forked and detached from django_mongodb_cash_backend.
Reason this release was yanked:
README refers to lib from which it's forked.
Project description
Django Cache With MongoDB
Installation and Usage
Install with:
$ pip install django-cache-with-mongodb
Add the following to your Django settings::
CACHES = {
'default': {
'BACKEND': 'django_mongodb_cash_backend.MongoDBCache',
"LOCATION": "hostname[:port]",
"OPTIONS": {
"USERNAME": "username_if_desired",
"PASSWORD": "password_if_needed",
"DATABASE": "cache_db_name",
"COLLECTION": "cache_colleciton", # default: django_cache
},
"TIMEOUT": 86400, # either set TIMEOUT or MAX_ENTRIES, not both
"MAX_ENTRIES": 10000, # either set MAX_ENTRIES or TIMEOUT, not both
}
}
Notice
The backend will handle TTL index creation if TIMEOUT is set, or will create a capped collection if MAX_ENTRIES is set. You should ensure that the collections are not created beforehands, so that the backend can do its work correctly.
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for django_cache_with_mongodb-2021.7.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bd54448a4161c3545d4baf29818f944d0883b0e1708977600d4535e5398bc7e |
|
MD5 | ce28938a9a5cd54a418f9d69eefeba3e |
|
BLAKE2b-256 | faf3c8e7920c17e5d41d547ed135cd5f556b3d96d92e3e79af1af1b45ba13a60 |