Hierarchy (View Summary)

Constructors

Properties

_data: {} = {}
_initialValue: Function
_keys: any[] = []
key: string

Methods

  • Returns number

    returns 0 if key was not found, returns 1 if key was deleted

  • Returns (string | boolean)[]

    [success, value], success true if value was in storage and read, value is the read string

  • write a value with to the local storage of the browser with the class specific key (this.key)

    Parameters

    • value: string

      {string} string to write to the local storage of the browser

    Returns void

  • Parameters

    • hash: string

      {string} adds the hash to the saved object and creates all keys in the

    Returns int

    returns 1 if the hash was added, 0 if it already existed

  • Parameters

    • hash: any

    Returns void

  • Returns {}[]

  • Parameters

    • hash: any
    • key: any

    Returns any

  • deletes all data, resets the object in local storage to an empty object

    Returns void

  • Parameters

    • hash: any

    Returns void

  • Returns void

  • Parameters

    • hash: any
    • key: any
    • value: any

    Returns void