Skip to content

Glossary: Next.js Basics

"use cache"

Also written: use cache

A directive placed at the top of an async function or component that caches its result so it is made once and reused. `getProducts` uses it so the products file isn't read on every visit.

Where the book teaches it

Related terms

cacheLifeCache ComponentsDirective