Skip to content

uni-flow 公开 API(中文注解)


uni-flow 公开 API(中文注解) / InMemoryCheckpointStore

Class: InMemoryCheckpointStore ​

Defined in: layer4/checkpoint-store.ts:4

进程内检查点存储:按 runId 保存 / 加载 / 列出快照。

Implements ​

Constructors ​

Constructor ​

new InMemoryCheckpointStore(): InMemoryCheckpointStore

Returns ​

InMemoryCheckpointStore

Methods ​

delete() ​

delete(runId): Promise<void>

Defined in: layer4/checkpoint-store.ts:34

Parameters ​

runId ​

string

Returns ​

Promise<void>

Implementation of ​

CheckpointStore.delete


list() ​

list(runId): Promise<SnapshotMeta[]>

Defined in: layer4/checkpoint-store.ts:25

Parameters ​

runId ​

string

Returns ​

Promise<SnapshotMeta[]>

Implementation of ​

CheckpointStore.list


load() ​

load(runId, snapshotId?): Promise<WorkflowSnapshot | null>

Defined in: layer4/checkpoint-store.ts:15

Parameters ​

runId ​

string

snapshotId? ​

string

Returns ​

Promise<WorkflowSnapshot | null>

Implementation of ​

CheckpointStore.load


save() ​

save(runId, snapshot): Promise<string>

Defined in: layer4/checkpoint-store.ts:7

Parameters ​

runId ​

string

snapshot ​

WorkflowSnapshot

Returns ​

Promise<string>

Implementation of ​

CheckpointStore.save

MIT Licensed