Skip to main content

django-cache-toolbox

Non-magical object caching for Django.

Another caching framework for Django that does not do any magic behind your back, saving brain cycles when debugging as well as sticking to Django principles.

Installation

From PyPI:

pip install django-cache-toolbox

Basic Usage

from cache_toolbox import cache_model, cache_relation
from django.db import models

class Foo(models.Model):
    ...

class Bazz(models.Model):
    foo = models.OneToOneField(Foo, related_name='bazz', primary_key=True)
    ...

# Prepare caching of a model
cache_model(Foo)

# Prepare caching of a relation
cache_relation(Foo.bazz)

# Fetch the cached version of a model
foo = Foo.get_cached(pk=42)

# Load a cached relation
print(foo.bazz_cache)

See the module docstrings for further details.

Metadata

Release files for django-cache-toolbox 1.6.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-toolbox 1.6.1
File Size Uploaded
django-cache-toolbox-1.6.1.tar.gz 10.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-cache-toolbox 1.6.1
File Interpreter ABI Platform
django_cache_toolbox-1.6.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 21.8 kB

Release files / django-cache-toolbox-1.6.1.tar.gz

Download URL django-cache-toolbox-1.6.1.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a2253524e21ee151d51450a2c1cbf9af08316274d10b164aecbfaa6afab95c2a
BLAKE2b-256 checksum
How to use checksums
d6a0df86726244589881e1666ef0b05ba49abd3eae3d7b0a2651a0d2bb943e80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release files / django_cache_toolbox-1.6.1-py2.py3-none-any.whl

Download URL django_cache_toolbox-1.6.1-py2.py3-none-any.whl
Size 11.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
bcb1b34eac42e6e1a391e222cc1fa7197b04f2a722ec4e89d4b2e197b3e559ec
BLAKE2b-256 checksum
How to use checksums
34508fb4adcc16bc9823506b049ca7b789ba090140fc64ab336453b25028ab2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release history Release notifications | RSS feed

This release

1.6.1 This release

2 release files

1.6.0

1 release file

1.5.0

1 release file

1.4.0

1 release file

1.3.0

1 release file

1.2.1

1 release file

1.2.0

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.0

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.1

1 release file

0.1

1 release file

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