Open History to see the last commit
1import Dexie from 'dexie'
2β
3import type { EntityTable } from 'dexie'
4β
5// Dexie database for RSC payload caching
6export interface RscCacheEntry {
7 id: string
8 payload: string
9 createdAt: number
10}
11β
12export const db = new Dexie('RscCache') as Dexie & {
13 cache: EntityTable<RscCacheEntry, 'id'>
14}
15β
16db.version(1).stores({
17 cache: 'id, createdAt',
18})