Skip to main content

a modern, maintained drop-in replacement for the abandoned django-memoize package.

Project description

drop-in replacement for django-memoize

python-latest pypi status pypi_downloads license

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_memoize_compat-3.0.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_memoize_compat-3.0.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file django_memoize_compat-3.0.0.tar.gz.

File metadata

  • Download URL: django_memoize_compat-3.0.0.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

Hashes for django_memoize_compat-3.0.0.tar.gz
Algorithm Hash digest
SHA256 7062d304e4ecedd9c39de21a7c72122c17f984f7973e10bf2f63e8845d057794
MD5 67c12ad5c08ddfc94cec600d88b4f272
BLAKE2b-256 41d09183f63f87d1f2b4b510bf1d01fa534399b469c0a5ec59205c3ce7696ba5

See more details on using hashes here.

File details

Details for the file django_memoize_compat-3.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_memoize_compat-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 66bbdb2d5d941e5d0229e14d779dee22aa41a6556f0577893d0ac2bc24215f56
MD5 9f808b3c9fdeca77635b357fa544031f
BLAKE2b-256 34b6427119a06eab9dfd05d9f8a6c704c34457935f734cda77ae5d5bb84c4788

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