Skip to main content
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

Metadata

Release files for django-cache-decorator 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-cache-decorator 0.4.1
File Size Uploaded Provenance
django-cache-decorator-0.4.1.tar.gz 3.0 kB Without provenance Details

Release files / django-cache-decorator-0.4.1.tar.gz

Download URL django-cache-decorator-0.4.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
cbaf919b57b0095f4a06a1b356a339cc8c158eae65c6229a1255787c1510b3cc
BLAKE2b-256 checksum
How to use checksums
98a3a01c918bc3f2676a4f4f0b996f285e80ed89538881f65b52b6d9ee8d9d01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-cache-decorator 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.4.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page