Class for storing and retrieving documents in memory synchronously.

Constructors

Methods

Constructors

Methods

  • Adds new documents to the store.

    Parameters

    • texts: Record<string, Document<Record<string, any>>>

      An object where the keys are document IDs and the values are the documents themselves.

    Returns void

    Void

  • Searches for a document in the store based on its ID.

    Parameters

    • search: string

      The ID of the document to search for.

    Returns Document<Record<string, any>>

    The document with the given ID.