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
| Parameter | Type |
|---|---|
contentKey | string |
source | string |
Returns
Promise<FileFact>
get()
get(
contentKeys):Promise<Map<string,FileFact>>>>
Parameters
| Parameter | Type |
|---|---|
contentKeys | string[] |
Returns
Promise<Map<string, FileFact>>
Implementation of
put()
put(
facts):Promise<void>>
Parameters
| Parameter | Type |
|---|---|
facts | FileFact[] |
Returns
Promise<void>