mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-20 17:27:45 +02:00
13 lines
403 B
TypeScript
13 lines
403 B
TypeScript
import { cacheLife, cacheTag } from "next/cache";
|
|
|
|
/**
|
|
* Function-level `"use cache"` — Next.js 16's replacement for
|
|
* experimental PPR shells. vinext implements the directive; full
|
|
* `cacheComponents` / resume is still incomplete upstream.
|
|
*/
|
|
export async function readCachedStamp() {
|
|
"use cache";
|
|
cacheTag("demo-stamp");
|
|
cacheLife({ revalidate: 30 });
|
|
return new Date().toISOString();
|
|
}
|