Upravit

Sdílet prostřednictvím


MemoryStorage class

Constructors

MemoryStorage()

Methods

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

Constructor Details

MemoryStorage()

new MemoryStorage()

Method Details

clear()

function clear()

containsKey(string)

function containsKey(key: string): boolean

Parameters

key

string

Returns

boolean

getItem(string)

function getItem(key: string): T | null

Parameters

key

string

Returns

T | null

getKeys()

function getKeys(): string[]

Returns

string[]

removeItem(string)

function removeItem(key: string)

Parameters

key

string

setItem(string, T)

function setItem(key: string, value: T)

Parameters

key

string

value

T