Easily add caching to functions within a django project.
pip install django-cache-decorator
pip install -e git+https://github.com/rchrd2/django-cache-decorator.git#egg=django-cache-decorator
@django_cache_decorator(time=0)
def geocodeGooglePlaceTextJson(location):
...
python -m unittest tests
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)
- 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