Interface for storage operations.

interface Storage {
    getItem(key, ...params): any;
    removeItem(key, ...params): any;
    setItem(key, value, ...params): any;
}

Methods

  • Get the value associated with the given key.

    Parameters

    • key: string

      The key to retrieve the value for.

    • Rest ...params: any

      Additional parameters for the operation.

    Returns any

    The value associated with the given key.

  • Remove the value associated with the given key.

    Parameters

    • key: string

      The key to remove the value for.

    • Rest ...params: any

      Additional parameters for the operation.

    Returns any

  • Set the value for the given key.

    Parameters

    • key: string

      The key to set the value for.

    • value: string

      The value to be stored.

    • Rest ...params: any

      Additional parameters for the operation.

    Returns any