InMemoryTaskBridgeCheckpointStore

A simple in-memory implementation of TaskBridgeCheckpointStore.

Data is lost when the app process is terminated. Use this for short-lived tasks or when persistence is managed elsewhere.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open suspend override fun clear(key: String)

Removes the checkpoint associated with the given key. Called when a task reaches a terminal state.

Link copied to clipboard
open suspend override fun load(key: String): String?

Loads the last event ID for the given key.

Link copied to clipboard
open suspend override fun save(key: String, lastEventId: String)

Persists the lastEventId for the given key.