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

Function getIsIndexedFromCache

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

Source from the content-addressed store, hash-verified

214 * @returns Boolean indicating if vectors exist, or null if not in cache
215 */
216export async function getIsIndexedFromCache(
217 owner: string,
218 repo: string,
219 env: Env,
220): Promise<boolean | null> {
221 try {
222 const key = getIsIndexedCacheKey(owner, repo);
223 const result = await getFromCache(key, env);
224 return result as boolean | null;
225 } catch (error) {
226 console.warn("Failed to retrieve vector existence from cache:", error);
227 return null;
228 }
229}
230
231/**
232 * Cache whether vectors exist for a repository

Callers

nothing calls this directly

Calls 3

getIsIndexedCacheKeyFunction · 0.85
getFromCacheFunction · 0.85
warnMethod · 0.80

Tested by

no test coverage detected