Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ClientStorage

Client lcoal storage handler definition. By default Atlogic client library uses Window.localStorage of the browser.

If you prefer to use a different storage handler besides Window.localStorage or if you are using the Altogic client library at the server (not browser) then you need to provide your storage implementation. This implementation needs to support mainly three methods, getItem, setItem and removeItem

interface

ClientStorage

Hierarchy

  • ClientStorage

Index

Methods

  • getItem(key: string): null | string
  • Parameters

    • key: string

    Returns null | string

  • removeItem(key: string): void
  • setItem(key: string, value: string): void
  • Parameters

    • key: string
    • value: string

    Returns void

Generated using TypeDoc