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

Metadata

Release files for django3-cache-decorator 0.6.0

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

Source distribution (sdist)

Source distribution for django3-cache-decorator 0.6.0
File Size Uploaded
django3_cache_decorator-0.6.0.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django3-cache-decorator 0.6.0
File Interpreter ABI Platform
django3_cache_decorator-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.5 kB

Release files / django3_cache_decorator-0.6.0.tar.gz

Download URL django3_cache_decorator-0.6.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7f58a4f76fdce4f267b8699847ef198e86ecfe7a6829e6e3daadd8717ad14961
BLAKE2b-256 checksum
How to use checksums
af44e574c33d1b1dde9f9e9004c3c8716264fc4939a398e1c212f11e14e06d21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.28.1

Release files / django3_cache_decorator-0.6.0-py3-none-any.whl

Download URL django3_cache_decorator-0.6.0-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6d4151b584d3146fce125cc2aa5d63ddd883f73516194941e3eed41a08c29ea1
BLAKE2b-256 checksum
How to use checksums
55c40e4081229e723f467a917334773739c8e6e05367f71d7a4fedc5716f2ac6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.28.1

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.3

2 release files

0.5.2

2 release files

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