LocalStorage

import {LocalStorage} from 'cabbie-async';

Managing local-storage

Methods

clear(): Promise<void>

Clear the storage

getItem(key): Promise<string>

key
string

Get the storage item for the given key

getKeys(): Promise<Array<string>>

Get all keys of the storage

getSize(): Promise<number>

Get the number of items in the storage

removeItem(key): Promise<void>

key
string

Remove the storage item for the given key

setItem(key, value): Promise<void>

key
string
value
string

Set the storage item for the given key