A Django app for the caching api data while get method and removing after data altered or created.
Project description
django-cache-middleware
django-cache-middleware is a Django app for the caching api data while get method and removing after data altered or created.
Installation
* pip install django-cache-middleware
* Add ``cache_middleware`` to your ``INSTALLED_APPS``
* Add ``cache_middleware.middlewares.CacheMiddleware`` to your ``MIDDLEWARE``
* set django redis for your project (https://pypi.org/project/django-redis/)
::
Setup in settings
* REMOVE_RELATED_CACHE : bool # default True # remove related model data i.e o2m, m2o, m2m, 020 dat
* CACHE_REMOVE_TIMEOUT : integer | None # default None # cache removing time
* BASE_API_URL : str # default /api/ # base api url
* CACHE_NAME : str # default settings.ROOT_URLCONF.split('.')[0] # name of cache base key name
::
Compatibility
{py37, py38, py310}-django{4.* above}
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-cache-middleware-0.0.1.linux-x86_64.tar.gz.
File metadata
- Download URL: django-cache-middleware-0.0.1.linux-x86_64.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e006b38d6cb6200f77199897923522e93232ae88ee76a7a3f5c15491dcb6330b
|
|
| MD5 |
171a15dc7cd8b82cba39b9a5855759b3
|
|
| BLAKE2b-256 |
496b486174e40ef68b511ea7e1dc5a24e4aae8e3651ea91e639ec62a18dcf394
|
File details
Details for the file django_cache_middleware-0.0.1-py3-none-any.whl.
File metadata
- Download URL: django_cache_middleware-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bfbc26b005784ec3dd59a38906040d2208d09f2e56da5e7e07fc22bad65d17c
|
|
| MD5 |
bbed8a17feb3ab3fa498294989a4ae37
|
|
| BLAKE2b-256 |
c8040d3023be85f02b09c11bae886743bed19c5d177e6d6edc9ecb7a397fa61d
|