SessionStorage

import {SessionStorage} from 'cabbie-sync';

Managing session-storage

Methods

clear(): void

Clear the storage

getItem(key): string

key
string

Get the storage item for the given key

getKeys(): Array<string>

Get all keys of the storage

getSize(): number

Get the number of items in the storage

removeItem(key): void

key
string

Remove the storage item for the given key

setItem(key, value): void

key
string
value
string

Set the storage item for the given key