Skip to main content

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.

Release files for django-mongodb-cash-backend 2015.11.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-mongodb-cash-backend 2015.11.9
File Size Uploaded
django-mongodb-cash-backend-2015.11.9.tar.gz 4.1 kB Details

Release files / django-mongodb-cash-backend-2015.11.9.tar.gz

Download URL django-mongodb-cash-backend-2015.11.9.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fb3442e0733213c4f75bbb8a1c6b955b7065c281acb24bc7fd0aa1209143ead4
BLAKE2b-256 checksum
How to use checksums
21cb7f8d8d4cc12e71c2e4920172a9058932fca27293e359118d3425c0b2f48e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

2015.11.9 This release

1 release file

1.0.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page