Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Storage(baseKey?: string): Storage

Properties

Protected baseKey

baseKey: string

Methods

clear

  • clear(): void

delete

  • delete(name: string): void

get

  • get(name: string, defaultValue?: string): string

has

  • has(name: string): boolean

Protected key

  • key(key?: string): string
  • Returns a scoped key for storage.

    example

    Storage.key('hello') // 'salte.auth.handler.redirect.hello'

    Parameters

    • key: string = ''

      The storage key.

    Returns string

set

  • set(name: string, value: any): void

Static supported

  • supported(): boolean
  • Determines if the current browser supports this storage type.

    Returns boolean

    true if the storage type is supported

Generated using TypeDoc