Function: registerMemorySessionStorage()
Makaio Framework / services-core / registerMemorySessionStorage
Function: registerMemorySessionStorage()
Section titled “Function: registerMemorySessionStorage()”registerMemorySessionStorage(
bus): () =>void
Defined in: ../../../packages/services/core/src/session/storage/memory-handler.ts:202
Register in-memory session storage handlers.
Suitable for development, testing, and single-instance deployments. Data is lost when the process exits.
Parameters
Section titled “Parameters”The bus instance to register handlers on
Returns
Section titled “Returns”Cleanup function to unsubscribe all handlers
() => void
Example
Section titled “Example”import { registerMemorySessionStorage } from '@makaio/services-core/session';
const cleanup = registerMemorySessionStorage(bus);
// Later, when shutting down:cleanup();