Skip to main content

No project description provided

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.3.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.5.3-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for django3_cache_decorator-0.5.3.tar.gz
Algorithm Hash digest
SHA256 586adf1c58abe1796a14047c5e07d34a0f0bf38323a16cfa47d10a5f876f864c
MD5 7b9c610919f83522f9b7cc619318baa1
BLAKE2b-256 6d62eeac9c0c6114eb92737135eb6d9eaf48bb7ef0d88add32186eb866305ba8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django3_cache_decorator-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a5c56d1a74ff9c85c9ae8b839d9de31b94679f19d70f69680374f2a44c6d2633
MD5 14793ac8f0b02a7f50e8da99d2d4eb77
BLAKE2b-256 25828197d0a35a423aee2ff2fd8f931b997da545b40012256fe478d65e4c2af2

See more details on using hashes here.

Supported by

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