Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DefaultStorage

Simple im-memory storage compatible with localStorage/sessionStorage API.

Hierarchy

  • DefaultStorage

Implements

  • Storage

Indexable

[key: string]: any

Simple im-memory storage compatible with localStorage/sessionStorage API.

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Private items

items: {} = ...

Type declaration

Accessors

length

  • get length(): number

Methods

clear

  • clear(): void

getItem

  • getItem(key: string): any
  • Parameters

    • key: string

    Returns any

key

  • key(index: number): any
  • deprecated

    operation not supported

    Parameters

    • index: number

    Returns any

removeItem

  • removeItem(key: string): void
  • Parameters

    • key: string

    Returns void

setItem

  • setItem(key: string, data: string): void
  • Parameters

    • key: string
    • data: string

    Returns void

Generated using TypeDoc