Clears the memoized instance cache. Call this when process.cwd() changes between strategy iterations so new instances are created with the updated base path.
Disposes all memoized instances for the given signalId. Called by MemoryAdapter when a signal is cancelled or closed.
Signal identifier to dispose
List all entries in memory.
Bucket name
Signal identifier
Array of all stored entries
Read a single entry from memory.
Bucket name
Unique entry identifier
Signal identifier
Entry value
Remove an entry from memory.
Search memory using BM25 full-text scoring.
Bucket name
Search query string
Optionalsettings?: SearchSettingsSignal identifier
Matching entries sorted by relevance score
Switches to dummy adapter that discards all writes.
Switches to in-memory BM25 adapter (default). All data lives in process memory only.
Switches to a custom memory adapter implementation.
Constructor for the custom memory instance
Switches to file-system backed adapter.
Data is persisted to ./dump/memory/
Write a value to memory.
Backtest memory adapter with pluggable storage backend.
Features:
Use this adapter for backtest memory storage.