MCPcopy Create free account
hub / github.com/idosal/git-mcp / getCachedFetchDocResult

Function getCachedFetchDocResult

src/api/utils/cache.ts:308–321  ·  view source on GitHub ↗
(
  owner: string,
  repo: string,
  env: Env,
)

Source from the content-addressed store, hash-verified

306 * @returns The cached FetchDocumentationResult or null if not found
307 */
308export async function getCachedFetchDocResult(
309 owner: string,
310 repo: string,
311 env: Env,
312): Promise<FetchDocumentationResult | null> {
313 try {
314 const key = getFetchDocCacheKey(owner, repo);
315 const result = await getFromCache(key, env);
316 return result as FetchDocumentationResult | null;
317 } catch (error) {
318 console.warn("Failed to retrieve fetchDoc result from cache:", error);
319 return null;
320 }
321}
322
323/**
324 * Cache fetchDocumentation result

Callers 1

fetchDocumentationFunction · 0.85

Calls 3

getFetchDocCacheKeyFunction · 0.85
getFromCacheFunction · 0.85
warnMethod · 0.80

Tested by

no test coverage detected