{"id":26904,"library":"django-memoize","title":"django-memoize","description":"An implementation of memoization technique for Django views and templates. Current version 2.3.1, with infrequent releases.","status":"active","version":"2.3.1","language":"python","source_language":"en","source_url":"https://github.com/unhaggle/django-memoize","tags":["django","memoization","caching"],"install":[{"cmd":"pip install django-memoize","lang":"bash","label":"Install via pip"}],"dependencies":[],"imports":[{"note":null,"wrong":null,"symbol":"memoize","correct":"from memoize import memoize"}],"quickstart":{"code":"from memoize import memoize\n\n@memoize(3600)\ndef expensive_function():\n    return sum(i for i in range(1000000))","lang":"python","description":"Decorate a function with @memoize(seconds) to cache its result for the given number of seconds."},"warnings":[{"fix":"Use Django's cache framework directly if cross-process caching is required.","message":"The memoize decorator caches in process memory; for persistent caching across processes (e.g., with Redis or memcached) you need a different library or manual cache layer.","severity":"gotcha","affected_versions":"all"},{"fix":"Consider using Django's built-in caching or other actively maintained memoization libraries.","message":"The library has not been updated in several years and may have compatibility issues with newer Django versions (3.x, 4.x, 5.x). Test thoroughly.","severity":"deprecated","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pip install django-memoize' and then import as 'from memoize import memoize'.","cause":"The package name is 'django-memoize' but the import module is just 'memoize'.","error":"ImportError: No module named memoize"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}