Vinyl
    Preparing search index...

    Class StoragePersistence

    An abstract persistence interface for an async key / value store.

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Clears all items.

      Returns Promise<void>

    • Resolves to the value for the given key, or null if non-existent.

      Parameters

      • key: string

      Returns Promise<null | string>

    • Removes the given key.

      Parameters

      • key: string

      Returns Promise<void>

    • Saves the given value to disk.

      Parameters

      • key: string
      • value: string

      Returns Promise<void>