Metadata-Version: 2.4
Name: django3-cache-decorator
Version: 0.6.0
Project-URL: Documentation, https://github.com/Xiang Wang/django3-cache-decorator#readme
Project-URL: Issues, https://github.com/Xiang Wang/django3-cache-decorator/issues
Project-URL: Source, https://github.com/Xiang Wang/django3-cache-decorator
Author-email: Xiang Wang <ramwin@qq.com>
License-Expression: MIT
License-File: LICENSE.txt
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.8
Description-Content-Type: text/markdown

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
