Directives
Last updated June 16, 2025
The following directives are available:
use cache
Learn how to use the "use cache" directive to cache data in your Next.js application.
use cache: private
Learn how to use the "use cache: private" directive to cache functions that access runtime request APIs.
use cache: remote
Learn how to use the "use cache: remote" directive for persistent, shared caching using remote cache handlers.
use client
Learn how to use the use client directive to render a component on the client.
use server
Learn how to use the use server directive to execute code on the server.
Was this helpful?