rembrembdocs

Directives

Last updated April 23, 2026

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/index.md)[

use cache: private

Learn how to use the "use cache: private" directive to cache functions that access runtime request APIs.

](use-cache-private/index.md)[

use cache: remote

Learn how to use the "use cache: remote" directive for persistent, shared caching using remote cache handlers.

](use-cache-remote/index.md)[

use client

Learn how to use the use client directive to render a component on the client.

](use-client/index.md)[

use server

Learn how to use the use server directive to execute code on the server.

](use-server/index.md)

Was this helpful?