Skip to content

Glossary: Next.js Basics

cacheLife

A function from `next/cache` that sets how long a cached result stays good, using profiles such as "minutes", "hours" and "days". Without it, the default is 15 minutes.

Where the book teaches it

Related terms

"use cache"Revalidate and Expire