Skip to content

CacheConfig

CacheConfig = object

Defined in: packages/db/src/types.ts:87

backend: CacheBackend

Defined in: packages/db/src/types.ts:88


optional exclude: string[]

Defined in: packages/db/src/types.ts:92


optional kv: KVNamespace

Defined in: packages/db/src/types.ts:89


optional onHit: (key, table) => void

Defined in: packages/db/src/types.ts:93

string

string

void


optional onInvalidate: (tables) => void

Defined in: packages/db/src/types.ts:95

string[]

void


optional onMiss: (key, table) => void

Defined in: packages/db/src/types.ts:94

string

string

void


optional staleWhileRevalidate: string

Defined in: packages/db/src/types.ts:91


optional ttl: string

Defined in: packages/db/src/types.ts:90