@botmesh/core - v2.0.0-alpha.2
    Preparing search index...

    Interface MemoryStoreOptions

    interface MemoryStoreOptions {
        maxMessagesPerChat?: number;
        file?: string;
        autoSaveInterval?: string | number;
        logger?: MemoryStoreLogger;
    }
    Index
    maxMessagesPerChat?: number

    Max messages retained per chat; older ones are dropped on save. Default 1000 — unlike the persistent stores, where the cap is opt-in, because this log lives in the process's RAM and is never persisted: an unbounded default would grow memory forever on a long-running bot. Pass Infinity to disable it. Must be a non-negative integer or Infinity, else the constructor throws a RangeError.

    file?: string

    Optional JSON file for persistence across restarts.

    autoSaveInterval?: string | number

    Auto-save interval: a duration ('1m') or ms. Set 0 to disable. Default 60_000.

    Optional logger for load/persist failures. Falls back to silence when omitted.