Directives
Source URL: https://nextjs.org/docs/app/api-reference/directives
Directives
Section titled “Directives”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.