Documentation / @zerotal/flow / index / setDurableStore
Function: setDurableStore()
setDurableStore(
store):void
Defined in: flow/src/durable.ts:123
Replace the process-wide durable-snapshot store. Call once at boot to move durability off the default in-process map onto a persistent backend so resumable state survives a server redeploy (and is shared across instances).
Parameters
store
The store implementation to install.
Returns
void
Example
// boot: persist durable snapshots in Redis so they outlive redeploys.
setDurableStore(new CacheDurableStore(cache));