FP-Devicer - v1.6.1
    Preparing search index...

    Function createInMemoryAdapter

    • Create a volatile, in-process StorageAdapter backed by a plain Map. All data is lost when the process exits.

      Intended for testing and development only. Because there is no persistence layer, linkToUser and deleteOldSnapshots are no-ops.

      Returns StorageAdapter

      A fully initialised (eager) StorageAdapter instance.

      const adapter = createInMemoryAdapter();
      await adapter.init(); // no-op but keeps the API consistent