Interface PersistentStore<T>
Properties
getItem
getItem: function
Type declaration
-
- (key: string): Promise<T>
-
Parameters
Returns Promise<T>
removeItem
removeItem: function
Type declaration
-
- (key: string): Promise<void> | void
-
Parameters
Returns Promise<void>
|
void
setItem
setItem: function
Type declaration
-
- (key: string, data: T): Promise<void>
-
Parameters
Returns Promise<void>
Interface for underlying storage for cache and offline data