Interface AsyncKeyValueRWTransaction

Represents an asynchronous read-write transaction.

Hierarchy

Methods

Methods

  • Deletes the data at the given key.

    Parameters

    • key: string

      The key to delete from the store.

    Returns Promise<void>

  • Adds the data to the store under the given key. Overwrites any existing data.

    Parameters

    • key: string

      The key to add the data under.

    • data: Uint8Array

      The data to add to the store.

    • overwrite: boolean

      If 'true', overwrite any existing data. If 'false', avoids writing the data if the key exists.

    Returns Promise<boolean>

Generated using TypeDoc