Skip to content

@saflib/imports


Class: MemoryFactStore

In-memory FactStore for workdir / CI (no SQLite).

Implements

Constructors

Constructor

new MemoryFactStore(): MemoryFactStore

Returns

MemoryFactStore

Methods

ensureFromSource()

ensureFromSource(contentKey, source): Promise<FileFact>>

Parse source and store under contentKey; returns the fact.

Parameters

ParameterType
contentKeystring
sourcestring

Returns

Promise<FileFact>


get()

get(contentKeys): Promise<Map<string, FileFact>>>>

Parameters

ParameterType
contentKeysstring[]

Returns

Promise<Map<string, FileFact>>

Implementation of

FactStore.get


put()

put(facts): Promise<void>>

Parameters

ParameterType
factsFileFact[]

Returns

Promise<void>

Implementation of

FactStore.put