Skip to content

KVNamespaceLike

Defined in: types.ts:33

The subset of a Cloudflare KV namespace the store uses.

delete(key): Promise<void>

Defined in: types.ts:43

string

Promise<void>


get<T>(key, type?): Promise<T | null>

Defined in: types.ts:34

T = unknown

string

"text" | "json"

Promise<T | null>


list(options?): Promise<{ cursor?: string; keys: readonly object[]; list_complete: boolean; }>

Defined in: types.ts:44

string

number

string

Promise<{ cursor?: string; keys: readonly object[]; list_complete: boolean; }>


put(key, value, options?): Promise<void>

Defined in: types.ts:35

string

string

number

Readonly<Record<string, unknown>>

Promise<void>