The best way to control Claude Code, Codex and more from any computer or phone

main
ts 13 lines 403 Bytes
Raw
1 import { cacheLife, cacheTag } from "next/cache";
2
3 /**
4 * Function-level `"use cache"` — Next.js 16's replacement for
5 * experimental PPR shells. vinext implements the directive; full
6 * `cacheComponents` / resume is still incomplete upstream.
7 */
8 export async function readCachedStamp() {
9 "use cache";
10 cacheTag("demo-stamp");
11 cacheLife({ revalidate: 30 });
12 return new Date().toISOString();
13 }