Docs
API
Classes
LocalforageCache

Class: LocalforageCache<V>

cache/localforage/src.LocalforageCache

Type parameters

NameType
Vany

Implements

Table of contents

Constructors

Methods

Constructors

constructor

new LocalforageCache<V>(config?)

Type parameters

NameType
Vany

Parameters

NameType
config?LocalforageConfig

Methods

delete

delete(key): Promise<void>

Parameters

NameType
keystring

Returns

Promise<void>

Implementation of

KeyValueCache.delete


get

get(key): Promise<V>

Parameters

NameType
keystring

Returns

Promise<V>

Implementation of

KeyValueCache.get


getKeysByPrefix

getKeysByPrefix(prefix): Promise<string[]>

Parameters

NameType
prefixstring

Returns

Promise<string[]>

Implementation of

KeyValueCache.getKeysByPrefix


set

set(key, value, options?): Promise<void>

Parameters

NameType
keystring
valueV
options?KeyValueCacheSetOptions

Returns

Promise<void>

Implementation of

KeyValueCache.set