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 django-cache-decorator
```
## Installation from Github
```
pip install -e git+https://github.com/rchrd2/django-cache-decorator.git#egg=django-cache-decorator
```
## Example usage
```
@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
## Installation from PyPi
```
pip install django-cache-decorator
```
## Installation from Github
```
pip install -e git+https://github.com/rchrd2/django-cache-decorator.git#egg=django-cache-decorator
```
## Example usage
```
@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
File details
Details for the file django-cache-decorator-0.4.1.tar.gz
.
File metadata
- Download URL: django-cache-decorator-0.4.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbaf919b57b0095f4a06a1b356a339cc8c158eae65c6229a1255787c1510b3cc |
|
MD5 | d8e5fb234e37e8927f1aa45cdf1ad114 |
|
BLAKE2b-256 | 98a3a01c918bc3f2676a4f4f0b996f285e80ed89538881f65b52b6d9ee8d9d01 |