Interface IStorage

Define a storage manager

Hierarchy

  • IStorage

Methods

  • Get the value of a key. Returns null if the key is not available in storage

    Parameters

    • key: string

    Returns Promise<string>

  • Get all existing keys from storage.

    Returns Promise<string[]>

  • Check if a key exists in storage

    Parameters

    • key: string

    Returns Promise<boolean>

  • Check whether the storage is available to use

    Returns boolean

  • Remove a key out of storage.

    Parameters

    • key: string

    Returns Promise<void>

  • Set a key-value pair to storage

    Parameters

    • key: string
    • value: string

    Returns Promise<void>

  • Update new password and re-sync all existing items in storage

    Parameters

    • password: string

    Returns Promise<void>

Generated using TypeDoc