Skip to content

Glossary: Next.js Beyond the Basics

cacheLife

A function used inside a "use cache" function to say how long the cached result stays good, for example cacheLife("hours"). Its profile names, like "max", are also used by revalidateTag.

Where the book teaches it

Related terms

"use cache"revalidateTag