Reads the response cache for a request and, on a hit, fires the
onRequestStart/onResponse hooks with cacheHit: true before returning
the cached body.
The cache-hit hook emissions live here, with the cache policy and not in the
transport entry, so the read path's observability contract stays next to
the cache it reports on. The transport fires the hooks through the same
safeInvoke isolation every other emission uses; the correlation
requestId is generated lazily, only when a hook is configured,
so the cache-hit fast path of a hook-less hot loop does not pay the UUID
generation cost on every call.
Internal transport helper: exported for the transport module, not part
of the package's public API.
Reads the response cache for a request and, on a hit, fires the
onRequestStart/onResponsehooks withcacheHit: truebefore returning the cached body.The cache-hit hook emissions live here, with the cache policy and not in the transport entry, so the read path's observability contract stays next to the cache it reports on. The transport fires the hooks through the same
safeInvokeisolation every other emission uses; the correlationrequestIdis generated lazily, only when a hook is configured, so the cache-hit fast path of a hook-less hot loop does not pay the UUID generation cost on every call.Internal transport helper: exported for the transport module, not part of the package's public API.