Interface IAsyncStorage

interface IAsyncStorage {
    clear(): Promise<void>;
    getItem(key): Promise<null | string>;
    removeItem(key): Promise<void>;
    setItem(key, value): Promise<void>;
}

Methods

  • Clear all data for this storage.

    Returns Promise<void>

  • Get the value for the given key.

    Parameters

    • key: string

    Returns Promise<null | string>

  • Remove the value for the given key.

    Parameters

    • key: string

    Returns Promise<void>

  • Set the value for the given key.

    Parameters

    • key: string
    • value: string

    Returns Promise<void>