BrowserStorage class

Constructors

BrowserStorage(string)

Methods

containsKey(string)
getItem(string)
getKeys()
removeItem(string)
setItem(string, string)

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