Class WebStorageStore

A synchronous key-value store backed by Storage.

Implements

  • Store
  • SyncMapStore

Constructors

Properties

Accessors

Methods

Constructors

Properties

storage: Storage

Accessors

  • get name(): string
  • What the file system using this store should be called. For example, tmpfs for an in memory store

    Returns string

Methods

  • Empties the store completely.

    Returns void

  • Empties the store completely.

    Returns void

  • Parameters

    • key: number

    Returns void

  • Parameters

    • key: number

    Returns undefined | Uint8Array

  • Returns Iterable<number>

  • Parameters

    • key: number
    • data: Uint8Array

    Returns void

  • Syncs the store

    Returns Promise<void>

  • Begins a new transaction.

    Returns SyncMapTransaction