Add a guide on caching data.

Review Request #14873 — Created March 5, 2026 and updated

Information

Djblets
release-5.x

Reviewers

This introduces the first of a series of caching guides, focusing on
using cache_memoize() and cache_memoize_iter(). This covers basic
usage, iterables, force-overrides, large data, compression, encryption,
and locking,all with examples covering both functions.

Built the docs. Checked for build errors, spelling errors, and bad
links.

Summary ID
Add a guide on caching data.
This introduces the first of a series of caching guides, focusing on using `cache_memoize()` and `cache_memoize_iter()`. This covers basic usage, iterables, force-overrides, large data, compression, encryption, and locking,all with examples covering both functions.
f3844c4ab3151b3720d42cf69d00de6c83a7fddc
Description From Last Updated

Typo in description: locking,all -> locking, all

daviddavid

Typo: of of

daviddavid

Can we include an import for Iterator?

daviddavid

It's probably more correct to say this returns Iterator

daviddavid

Typo: ofr -> for Though it might be better to say something like "This is always enabled for cache_memoize_iter"

daviddavid
Checks run (2 succeeded)
flake8 passed.
JSHint passed.
david
  1. 
      
  2. Show all issues

    Typo in description: locking,all -> locking, all

  3. Show all issues

    Typo: of of

  4. docs/djblets/guides/caching/caching-data.rst (Diff revision 1)
     
     
     
     
     
    Show all issues

    Can we include an import for Iterator?

  5. Show all issues

    It's probably more correct to say this returns Iterator

  6. Show all issues

    Typo: ofr -> for

    Though it might be better to say something like "This is always enabled for cache_memoize_iter"

  7.