Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/tsc/dts/lib.deno.unstable.d.ts>Deno.KvKey

A modern runtime for JavaScript and TypeScript.
Latest
type alias Deno.KvKey
import { type Deno } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.unstable.d.ts";
const { KvKey } = Deno;

UNSTABLE: New API, yet to be vetted.

A key to be persisted in a Deno.Kv. A key is a sequence of Deno.KvKeyParts.

Keys are ordered lexicographically by their parts. The first part is the most significant, and the last part is the least significant. The order of the parts is determined by both the type and the value of the part. The relative significance of the types can be found in documentation for the Deno.KvKeyPart type.

Keys have a maximum size of 2048 bytes serialized. If the size of the key exceeds this limit, an error will be thrown on the operation that this key was passed to.

definition: readonly KvKeyPart[]