Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DefaultStorage

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

Hierarchy

  • DefaultStorage

Implements

  • Storage

Indexable

[index: number]: string

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

Index

Properties

Accessors

Methods

Properties

Private items

items: object

Type declaration

Accessors

length

  • get length(): number

Methods

clear

  • clear(): void

getItem

  • getItem(key: string): string | any

key

  • key(index: number): string | any
  • deprecated

    operation not supported

    Parameters

    • index: number

    Returns string | any

removeItem

  • removeItem(key: string): void

setItem

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

Generated using TypeDoc