Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BaseStorage

Prescribes a common interface of string-value KVS.

Hierarchy

  • BaseStorage

Index

Methods

get

  • get(key: string): null | string
  • Retrieves the value associated with the specified key.

    Returns null if the key is not found.

    Parameters

    • key: string

      key to retrieve

    Returns null | string

remove

  • remove(key: string): void
  • Removes the key and its value.

    Parameters

    • key: string

      key to remove

    Returns void

set

  • set(key: string, value: string): void
  • Associates the value with the key, then store the key-value pair.

    Parameters

    • key: string

      key to store

    • value: string

      value to be associated with key

    Returns void

Generated using TypeDoc