Skip to main content
Version: Next

RecoverableStatePersistenceOptions

Hierarchy

Index

Properties

optionalkeyValueStore

keyValueStore?: KeyValueStore | PromiseLike<KeyValueStore>

The KeyValueStore to persist into, defaulting to the default store. Accepts a pending KeyValueStore.open so that callers do not have to be async to point at a specific store.

optionalpersistenceEnabled

persistenceEnabled?: boolean

Flag to enable or disable state persistence

optionalpersistenceTimeoutMillis

persistenceTimeoutMillis?: number = 60_000

Time limit for a single load or save of the state, in milliseconds.

persistStateKey

persistStateKey: string

The key under which the state is stored in the KeyValueStore