()
| 13 | |
| 14 | // Cache TTL in seconds (12 hours with jitter) |
| 15 | function getCacheTTL(): number { |
| 16 | const jitterAmount = BASE_TTL * JITTER_FACTOR; |
| 17 | const jitter = Math.random() * (jitterAmount * 2) - jitterAmount; // Random value between -jitterAmount and +jitterAmount |
| 18 | return Math.floor(BASE_TTL + jitter); |
| 19 | } |
| 20 | |
| 21 | /** |
| 22 | * Cache key structure for repository file paths |
no outgoing calls
no test coverage detected