Archive

#cachelife

1 note match these filters

  • Next.js in Practice · Part 0517 min read

    Cache Components - use cache, cacheLife and cacheTag

    How the Cache Components model works in Next.js 16, what the compiler turns a 'use cache' function into, how the cache key is built from the function id, arguments, closures and build id, how cacheLife and cacheTag set an entry's lifetime and tags, and how cache handlers, 'use cache: private' and 'use cache: remote' store the result.