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.KvKeyPart
s.
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[]