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.1.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.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

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

Hashes for django_memoize_compat-3.0.1.tar.gz
Algorithm Hash digest
SHA256 e1ffe556374bc94f67c2941142ec5fc2deb661562c82900088a9d340300a81cb
MD5 5b9baeefeaf81131bb32db9a84404c73
BLAKE2b-256 5b03f8ccb4c8b7e5a227c3c267fd8995ee9583f56bbdfb46ac57f032e67ebd56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_memoize_compat-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f7cef85380068ab0caa0b0efa55fad2e0679bf9ea77b7f1a15655effe5441b4e
MD5 082400ba070e0023141f76df3da18bfa
BLAKE2b-256 8f89ce1c8528f206b115b4e86aea4150eee749580b971ea07df6d794a6cbb837

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