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 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


Download files

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

Source Distribution

django3-cache-decorator-0.5.2.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

django3_cache_decorator-0.5.2-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

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