Class SimpleMachineMemory<T>
Type Parameters
- T extends Record<string, any> = Record<string, any>
Constructors
constructor
- new SimpleMachineMemory<T>(): SimpleMachineMemory<T>
Type Parameters
- T extends Record<string, any> = Record<string, any>
Methods
clear
- clear(key?): void
Returns void
write
- write(id, data): Promise<void>
Returns Promise<void>
In-memory implementation of machine state storage for single-instance NodeJS apps.
Best for: Container apps, request-scoped workflows, testing, demos Not for: Multi-instance deployments, persistent workflows, distributed systems
Example