An interface describing a pluggable storage implementation that can be provided to SudoSiteReputationClient as a way to persistently store cache data and user preferences.

Hierarchy

  • StorageProvider

Implemented by

Methods

  • Clears all stored items.

    Returns Promise<void>

  • Removes an item from storage.

    Parameters

    • key: string

    Returns Promise<void>

  • Gets an item from storage.

    Parameters

    • key: string

    Returns Promise<undefined | string>

  • Returns keys of all items currently in storage.

    Returns Promise<string[]>

  • Sets an item in storage.

    Parameters

    • key: string
    • value: string

    Returns Promise<void>

Generated using TypeDoc