@asciidoctor/core
    Preparing search index...

    Function getCacheForDocument

    • Return the cache to use for a specific document conversion.

      Returns the registered cache if one exists; otherwise creates (or reuses) an ephemeral MemoryHttpCache scoped to the document's lifetime via a WeakMap.

      Parameters

      • doc: object

        the current Document instance

      Returns HttpCache