Skip to content

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


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

Class: RedisCheckpointStore

Defined in: layer4/redis-checkpoint-store.ts:17

基于 Redis(或兼容客户端)的 CheckpointStore。 可注入真实 Redis,或本地用 InMemoryRedisClient

Implements

Constructors

Constructor

new RedisCheckpointStore(client?): RedisCheckpointStore

Defined in: layer4/redis-checkpoint-store.ts:18

Parameters

client?

RedisLikeClient = ...

Returns

RedisCheckpointStore

Methods

delete()

delete(runId): Promise<void>

Defined in: layer4/redis-checkpoint-store.ts:52

Parameters

runId

string

Returns

Promise<void>

Implementation of

CheckpointStore.delete


list()

list(runId): Promise<SnapshotMeta[]>

Defined in: layer4/redis-checkpoint-store.ts:40

Parameters

runId

string

Returns

Promise<SnapshotMeta[]>

Implementation of

CheckpointStore.list


load()

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

Defined in: layer4/redis-checkpoint-store.ts:28

Parameters

runId

string

snapshotId?

string

Returns

Promise<WorkflowSnapshot | null>

Implementation of

CheckpointStore.load


save()

save(runId, snapshot): Promise<string>

Defined in: layer4/redis-checkpoint-store.ts:20

Parameters

runId

string

snapshot

WorkflowSnapshot

Returns

Promise<string>

Implementation of

CheckpointStore.save

MIT Licensed