( owner: string, repo: string, env: Env, )
| 214 | * @returns Boolean indicating if vectors exist, or null if not in cache |
| 215 | */ |
| 216 | export 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 |
nothing calls this directly
no test coverage detected