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
new InMemoryStore(options?): InMemoryStore;Defined in: packages/core/src/stores/inmemory.ts:25
Parameters
| Parameter | Type |
|---|---|
options? | { quiet?: boolean; } |
options.quiet? | boolean |
Returns
InMemoryStore
Methods
append()
append(runId, e): Promise<void>;Defined in: packages/core/src/stores/inmemory.ts:31
Parameters
| Parameter | Type |
|---|---|
runId | string |
e | JournalEntry |
Returns
Promise<void>
Implementation of
delete()
delete(runId): Promise<void>;Defined in: packages/core/src/stores/inmemory.ts:79
Parameters
| Parameter | Type |
|---|---|
runId | string |
Returns
Promise<void>
Implementation of
getMeta()
getMeta(runId): Promise<RunMeta | undefined>;Defined in: packages/core/src/stores/inmemory.ts:67
Parameters
| Parameter | Type |
|---|---|
runId | string |
Returns
Promise<RunMeta | undefined>
Implementation of
listRuns()
listRuns(f?): Promise<RunMeta[]>;Defined in: packages/core/src/stores/inmemory.ts:72
Parameters
| Parameter | Type |
|---|---|
f? | RunFilter |
Returns
Promise<RunMeta[]>
Implementation of
load()
load(runId): Promise<JournalEntry[]>;Defined in: packages/core/src/stores/inmemory.ts:58
Parameters
| Parameter | Type |
|---|---|
runId | string |
Returns
Promise<JournalEntry[]>
Implementation of
putMeta()
putMeta(m): Promise<void>;Defined in: packages/core/src/stores/inmemory.ts:62
Parameters
| Parameter | Type |
|---|---|
m | RunMeta |
Returns
Promise<void>