Skip to content

setKey

const setKey: any = addon.setKey

Defined in: index.cts:559

Stores or deletes a value in the shared key/value store.

key

Key to upsert (Buffer, ArrayBuffer, or string).

value

Optional value to store. Pass undefined to delete the key instead.

The previous value as a Uint8Array when the key existed, or undefined if it did not.