Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/core / InMemoryStore

Class: InMemoryStore

Defined in: packages/core/src/stores/inmemory.ts:20

Exact lookup capability: fetch one run's meta without materializing the whole catalog (the v1.25.0 scale review: resume, HTTP status, and CLI point lookups were O(all runs) through listRuns). Optional exactly like the lease capability: engines and shells detect it with hasMetaLookup and fall back to listRuns + find, so a conformant store written before this capability keeps working unoptimized. A missing run resolves undefined, never a rejection.

Implements

Constructors

Constructor

ts
new InMemoryStore(options?): InMemoryStore;

Defined in: packages/core/src/stores/inmemory.ts:25

Parameters

ParameterType
options?{ quiet?: boolean; }
options.quiet?boolean

Returns

InMemoryStore

Methods

append()

ts
append(runId, e): Promise<void>;

Defined in: packages/core/src/stores/inmemory.ts:31

Parameters

ParameterType
runIdstring
eJournalEntry

Returns

Promise&lt;void&gt;

Implementation of

MetaLookupStore.append


delete()

ts
delete(runId): Promise<void>;

Defined in: packages/core/src/stores/inmemory.ts:79

Parameters

ParameterType
runIdstring

Returns

Promise&lt;void&gt;

Implementation of

MetaLookupStore.delete


getMeta()

ts
getMeta(runId): Promise<RunMeta | undefined>;

Defined in: packages/core/src/stores/inmemory.ts:67

Parameters

ParameterType
runIdstring

Returns

Promise&lt;RunMeta | undefined&gt;

Implementation of

MetaLookupStore.getMeta


listRuns()

ts
listRuns(f?): Promise<RunMeta[]>;

Defined in: packages/core/src/stores/inmemory.ts:72

Parameters

ParameterType
f?RunFilter

Returns

Promise&lt;RunMeta[]&gt;

Implementation of

MetaLookupStore.listRuns


load()

ts
load(runId): Promise<JournalEntry[]>;

Defined in: packages/core/src/stores/inmemory.ts:58

Parameters

ParameterType
runIdstring

Returns

Promise&lt;JournalEntry[]&gt;

Implementation of

MetaLookupStore.load


putMeta()

ts
putMeta(m): Promise<void>;

Defined in: packages/core/src/stores/inmemory.ts:62

Parameters

ParameterType
mRunMeta

Returns

Promise&lt;void&gt;

Implementation of

MetaLookupStore.putMeta