OptionalrevalidateTime-to-live in seconds for the cached result.
false: opt out of caching (equivalent to no-store).force-cache / indefinitely).OptionaltagsCache tags for on-demand invalidation via revalidateTag.
Use scCacheKeys to generate consistent tag arrays.
next/cachecaching options for server helpers.When
next/cacheis available (i.e. inside a Next.js runtime), helpers wrap the underlying fetch withunstable_cacheusing these options. Outside of Next.js (e.g. in tests or plain Node), the options are ignored and the raw API call is made directly.Example