interface KvCacheStoreOptions
Since 0.2.0

Options for KvCacheStore.

Properties

readonly
optional
prefix: string

Prefix applied to every key. Required for KvCacheStore.clear, which otherwise has no way to tell this store's keys from anything else sharing the namespace.

readonly
optional
defaultTtlSeconds: number

TTL in seconds applied when set omits one. Omitted means no expiry.

Usage

import { type KvCacheStoreOptions } from "cloudflare-plugin/src/index.ts";