Skip to main content

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

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.6.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django3_cache_decorator-0.6.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file django3_cache_decorator-0.6.0.tar.gz.

File metadata

File hashes

Hashes for django3_cache_decorator-0.6.0.tar.gz
Algorithm Hash digest
SHA256 7f58a4f76fdce4f267b8699847ef198e86ecfe7a6829e6e3daadd8717ad14961
MD5 6ea4c0c9b261f2eec65f948b04e9f8f5
BLAKE2b-256 af44e574c33d1b1dde9f9e9004c3c8716264fc4939a398e1c212f11e14e06d21

See more details on using hashes here.

File details

Details for the file django3_cache_decorator-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django3_cache_decorator-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d4151b584d3146fce125cc2aa5d63ddd883f73516194941e3eed41a08c29ea1
MD5 91fa3bfb2801e779326012a81906f34d
BLAKE2b-256 55c40e4081229e723f467a917334773739c8e6e05367f71d7a4fedc5716f2ac6

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 files

0.5.3

2 files

0.5.2

2 files

Supported by

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