Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-cache-decorator-0.4.tar.gz (2.1 kB view details)

Uploaded Source

File details

Details for the file django-cache-decorator-0.4.tar.gz.

File metadata

File hashes

Hashes for django-cache-decorator-0.4.tar.gz
Algorithm Hash digest
SHA256 9d7a2dce70ea03d3a916e72751653de46847879aae34bfafec0b5c88637122bc
MD5 0fc88dcf1f4d7a154564e7b6cb75a341
BLAKE2b-256 6e9a6148bfeec394e4b422d4e984991ede90e514d3e0582865e914065b04670f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page