Docs
API
Classes
FileCache

Class: FileCache<V>

cache/file/src.FileCache

Type parameters

NameType
Vany

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new FileCache<V>(__namedParameters)

Type parameters

NameType
Vany

Parameters

NameType
__namedParametersObject
__namedParameters.importFnImportFn
__namedParameters.pathstring

Properties

absolutePath

absolutePath: string

Defined in

packages/cache/file/src/index.ts:8


json$

json$: Promise<Record<string, V>>

Defined in

packages/cache/file/src/index.ts:7


writeDataLoader

writeDataLoader: DataLoader<string, string, string>

Defined in

packages/cache/file/src/index.ts:9

Methods

delete

delete(name): Promise<void>

Parameters

NameType
namestring

Returns

Promise<void>

Implementation of

KeyValueCache.delete


get

get(name): Promise<V>

Parameters

NameType
namestring

Returns

Promise<V>

Implementation of

KeyValueCache.get


getKeysByPrefix

getKeysByPrefix(prefix): Promise<string[]>

Parameters

NameType
prefixstring

Returns

Promise<string[]>

Implementation of

KeyValueCache.getKeysByPrefix


set

set(name, value): Promise<void>

Parameters

NameType
namestring
valueV

Returns

Promise<void>

Implementation of

KeyValueCache.set