Easily add caching to functions within a django project.
Project description
Easily add caching to functions within a django project.
## Installation from PyPi
` pip install django3-cache-decorator `
## Example usage ` from django_cache_decorator import django_cache_decorator @django_cache_decorator(time=0) def geocodeGooglePlaceTextJson(location): `
## Running tests
` python -m unittest tests `
## Credits
Built off of example code from: http://james.lin.net.nz/2011/09/08/python-decorator-caching-your-functions/
Further development and packaging by Richard Caceres (@rchrd2)
## Release log
0.4 - Update project for PyPi (pip install django-cache-decorator)!
0.3 - another bug fix for unicode params
0.2 - bug fix for unicode params
0.1 - initial release
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
File details
Details for the file django3-cache-decorator-0.5.2.tar.gz
.
File metadata
- Download URL: django3-cache-decorator-0.5.2.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d41409aa18c5bd1a99d48632373336d9787cb94025807ff3161804044a9f8abe |
|
MD5 | c3a00dd7fe7930403894f68b52896eed |
|
BLAKE2b-256 | a1dbbea4c7f6f22f21281a60dfe6ffc6e51a552cecbb609a6f1d8f74ceacf8c9 |
File details
Details for the file django3_cache_decorator-0.5.2-py3-none-any.whl
.
File metadata
- Download URL: django3_cache_decorator-0.5.2-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8dc082bad6fa0598b5c26b30b15062aff5072ce649202fb82db2b49bfa454b3 |
|
MD5 | 7b955add8e649586c54fe53fa16790f5 |
|
BLAKE2b-256 | 69c02e6394cdb8c8d74c6ed35d395983e2a2e54adc2ebb867d7acf1433248ae1 |