interface IKvNamespace
Since 0.2.0

A Workers KV namespace binding.

Methods

get(key: string): Promise<string | null>

Reads a value as text.

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

Writes a value.

delete(key: string): Promise<void>

Removes a value. Succeeds whether or not the key existed.

list(options?: KvListOptions): Promise<KvListResult>

Lists keys, one page at a time.

Usage

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