# Composable Caching with Next.js

DevFeed: [Composable Caching with Next.js](<https://devfeed.tech/articles/composable-caching-with-next-js-3144.md>)

Original publisher: [Read original article](<https://nextjs.org/blog/composable-caching>)

Author: Lee Robinson

Published: 2025-01-03T14:00:00Z

Content type: article

Language: en

Sources: [Next.js Blog](<https://devfeed.tech/sources/next-js-blog.md>)

Topics: [Web Development](<https://devfeed.tech/topics/web-development.md>), [modern web development](<https://devfeed.tech/topics/modern-web-development.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [cache](<https://devfeed.tech/tags/cache.md>), [design](<https://devfeed.tech/tags/design.md>), [framework](<https://devfeed.tech/tags/framework.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [next-js](<https://devfeed.tech/tags/next-js.md>), [react](<https://devfeed.tech/tags/react.md>), [server](<https://devfeed.tech/tags/server.md>)

## AI overview

The article explains Next.js's proposed "use cache" directive and how compiler-derived cache keys include function dependencies and closure values to avoid stale data and cache collisions.

## Source excerpt

Learn more about the API design and benefits of 'use cache'