cache_localforage_src.default
#
Class: default<V\>cache/localforage/src.default
#
Type parametersName | Default |
---|---|
V | string |
#
Hierarchy- default
#
Implements- KeyValueCache<V\>
#
Table of contents#
Constructors#
Methods#
Constructors#
constructor+ new default<V\>(config?
: LocalforageConfig): default<V\>
#
Type parameters:Name | Default |
---|---|
V | string |
#
Parameters:Name | Type |
---|---|
config? | LocalforageConfig |
Returns: default<V\>
Defined in: packages/cache/localforage/src/index.ts:4
#
Methods#
deleteâ–¸ delete(key
: string): Promise<void\>
#
Parameters:Name | Type |
---|---|
key | string |
Returns: Promise<void\>
Implementation of: KeyValueCache
Defined in: packages/cache/localforage/src/index.ts:34
#
getâ–¸ get(key
: string): Promise<V\>
#
Parameters:Name | Type |
---|---|
key | string |
Returns: Promise<V\>
Implementation of: KeyValueCache
Defined in: packages/cache/localforage/src/index.ts:18
#
setâ–¸ set(key
: string, value
: V, options?
: KeyValueCacheSetOptions): Promise<void\>
#
Parameters:Name | Type |
---|---|
key | string |
value | V |
options? | KeyValueCacheSetOptions |
Returns: Promise<void\>
Defined in: packages/cache/localforage/src/index.ts:26