Skip to content

Function: registerMemoryImportCursorStorage()

Makaio Framework


Makaio Framework / ai-adapters-core / registerMemoryImportCursorStorage

Function: registerMemoryImportCursorStorage()

Section titled “Function: registerMemoryImportCursorStorage()”

registerMemoryImportCursorStorage(bus): () => void

Defined in: ../../../adapters/core/src/log-importer/cursor-memory-handler.ts:30

Register in-memory import cursor storage handlers.

Suitable for development, testing, and single-instance deployments. For production with persistence, implement a file-based or database-backed handler.

IMakaioBus

The bus instance to register handlers on

Cleanup function to unsubscribe all handlers

() => void

import { registerMemoryImportCursorStorage } from '@makaio/ai-adapters-core';
const cleanup = registerMemoryImportCursorStorage(bus);
// Later, when shutting down:
cleanup();