Skip to content

Topics

Jump to a topic.

Search questions

Find a question by title, tag, or summary.

Chapter 03

Cache Components

The use cache directive and Cache Components: how cache keys are built, what cached functions can read, cacheLife profiles, the private and remote variants, and how they differ from React's cache and unstable_cache.
  1. 010What does use cache cache, and how is its cache key built?Corehard
  2. 020Why can't a cached function read cookies(), and how do you pass request data into one?hard
  3. 030How do cacheLife profiles map to stale, revalidate and expire times?medium
  4. 040When do you need use cache: private or use cache: remote?hard
  5. 050How does use cache differ from React's cache and from unstable_cache?medium