Files
buzz-sheet/lib/cache/stygian.ts
T
2026-09-29 21:23:18 +07:00

16 lines
440 B
TypeScript

import "server-only";
import { cacheLife, cacheTag } from "next/cache";
import { getActiveStygianSchedule } from "@/lib/stygian/repository";
import { STYGIAN_CACHE_TAG } from "@/lib/cache/tags";
export { STYGIAN_CACHE_TAG };
export async function getCachedActiveStygianSchedule() {
"use cache: remote";
cacheLife({ stale: 30, revalidate: 60, expire: 60 * 60 });
cacheTag(STYGIAN_CACHE_TAG);
return getActiveStygianSchedule();
}