a modern, maintained drop-in replacement for the abandoned django-memoize package.
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_memoize_compat-3.0.1.tar.gz.
File metadata
- Download URL: django_memoize_compat-3.0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.12.12 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1ffe556374bc94f67c2941142ec5fc2deb661562c82900088a9d340300a81cb
|
|
| MD5 |
5b9baeefeaf81131bb32db9a84404c73
|
|
| BLAKE2b-256 |
5b03f8ccb4c8b7e5a227c3c267fd8995ee9583f56bbdfb46ac57f032e67ebd56
|
File details
Details for the file django_memoize_compat-3.0.1-py3-none-any.whl.
File metadata
- Download URL: django_memoize_compat-3.0.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.12.12 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7cef85380068ab0caa0b0efa55fad2e0679bf9ea77b7f1a15655effe5441b4e
|
|
| MD5 |
082400ba070e0023141f76df3da18bfa
|
|
| BLAKE2b-256 |
8f89ce1c8528f206b115b4e86aea4150eee749580b971ea07df6d794a6cbb837
|