( owner: string, repo: string, env: Env, )
| 306 | * @returns The cached FetchDocumentationResult or null if not found |
| 307 | */ |
| 308 | export 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 |
no test coverage detected