method IKvNamespace.get
IKvNamespace.get(key: string): Promise<string | null>

Reads a value as text.

Parameters

key: string

The key, at most 512 bytes

Return Type

Promise<string | null>

The stored string, or null when absent or expired

Usage

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