( owner: string, repo: string, exists: boolean, env: Env, )
| 236 | * @param env - Environment with Cloudflare bindings |
| 237 | */ |
| 238 | export async function cacheIsIndexed( |
| 239 | owner: string, |
| 240 | repo: string, |
| 241 | exists: boolean, |
| 242 | env: Env, |
| 243 | ): Promise<void> { |
| 244 | try { |
| 245 | const key = getIsIndexedCacheKey(owner, repo); |
| 246 | await setInCache(key, exists, env, getCacheTTL()); |
| 247 | console.log(`Cached vector existence for ${owner}/${repo}: ${exists}`); |
| 248 | } catch (error) { |
| 249 | console.warn("Failed to save vector existence to cache:", error); |
| 250 | } |
| 251 | } |
| 252 | |
| 253 | /** |
| 254 | * Fetch URL content with Cloudflare's tiered cache |
nothing calls this directly
no test coverage detected