MemoGrafter
close()
Release resources owned by the core instance.
What it does
Release resources owned by the core instance.
When to use it
Call during graceful service shutdown after all session operations have settled.
Signature
TypeScript
close(): Promise<void>Behavior
Closes store, cache Redis, and queue resources owned by this core instance without deleting memory.
Example
example.ts
await memo.close();