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
Returns
Promise<KvCommitResult>
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");