Rendering
use cache: remote
With Cache Components enabled, use cache: remote selects the remote cache handler. The directive alone does not provision shared storage; without a custom handler the documented default is in-memory. Use an approved shared handler with explicit capacity, failure and isolation policies. The sample shows public cached output, not a configured remote store. Source: https://nextjs.org/docs/app/api-reference/directives/use-cache-remote. Documentation-reviewed illustrative draft; installed declarations and runtime not verified.
Formal Syntax & Structure
nextjs syntaxnextjs
'use cache: remote'Working Example
Example Snippetnextjs
import {cacheLife,cacheTag} from 'next/cache';export async function publicTitle(slug:string){ 'use cache: remote'; cacheLife('hours'); cacheTag('public-catalog'); return slug==='moss'?'Moss Garden':null;}