Skip to main content
method Deno.Kv.prototype.set

Set the value for the given key in the database. If a value already exists for the key, it will be overwritten.

const db = await Deno.openKv();
await db.set(["foo"], "bar");

Parameters

key: KvKey
value: unknown