drop-in replacement for django-memoize
intro
this package is a modern, maintained drop-in replacement for the no longer maintained django-memoize package.
it preserves the original public api:
memoize(timeout=...)delete_memoized(func, *args)delete_memoized_verhash(func)
fully compatible with:
- django 5.x
- python 3.12 / 3.13
- redis 7
installation
# via pypi (recommended)
$ python -m pip install -U django-memoize-compat
usage
from memoize_compat import memoize, delete_memoized
@memoize(timeout=60)
def expensive(a, b):
return a + b
delete_memoized(expensive, 1, 2)
Metadata
Release files for django-memoize-compat 3.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_memoize_compat-3.0.1.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_memoize_compat-3.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.4 kB
Release files / django_memoize_compat-3.0.1.tar.gz
| Download URL | django_memoize_compat-3.0.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1ffe556374bc94f67c2941142ec5fc2deb661562c82900088a9d340300a81cb
|
|
BLAKE2b-256 checksum How to use checksums |
5b03f8ccb4c8b7e5a227c3c267fd8995ee9583f56bbdfb46ac57f032e67ebd56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.12.12 Darwin/24.6.0
|
Release files / django_memoize_compat-3.0.1-py3-none-any.whl
| Download URL | django_memoize_compat-3.0.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f7cef85380068ab0caa0b0efa55fad2e0679bf9ea77b7f1a15655effe5441b4e
|
|
BLAKE2b-256 checksum How to use checksums |
8f89ce1c8528f206b115b4e86aea4150eee749580b971ea07df6d794a6cbb837
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.12.12 Darwin/24.6.0
|