MemoryStorage class
Constructors
Memory |
Methods
clear() | |
contains |
|
get |
|
get |
|
remove |
|
set |
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