MCPcopy Index your code
hub / github.com/BingyanStudio/github-analyzer / saveReport

Function saveReport

api/src/services/generateReport.ts:423–431  ·  view source on GitHub ↗
(key: string, report: string)

Source from the content-addressed store, hash-verified

421
422// Save report to Redis
423async function saveReport(key: string, report: string): Promise<void> {
424 try {
425 await redisClient.set(`report:${key}`, report);
426 // Set expiration to 30 days (in seconds)
427 await redisClient.expire(`report:${key}`, 60 * 60 * 24 * 30);
428 } catch (err) {
429 console.error("Redis save error:", err);
430 }
431}
432
433// Check if a report generation is already pending
434async function isReportGenerationPending(key: string): Promise<boolean> {

Callers 1

startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected