Edit

Share via


BrowserStorage class

Constructors

Methods

Constructor Details

BrowserStorage(string)

new BrowserStorage(cacheLocation: string)

Parameters

cacheLocation

string

Method Details

containsKey(string)

function containsKey(key: string): boolean

Parameters

key

string

Returns

boolean

getItem(string)

function getItem(key: string): string | null

Parameters

key

string

Returns

string | null

getKeys()

function getKeys(): string[]

Returns

string[]

removeItem(string)

function removeItem(key: string)

Parameters

key

string

setItem(string, string)

function setItem(key: string, value: string)

Parameters

key

string

value

string