(chatId: number, mode: string, day: number)
| 58 | } |
| 59 | |
| 60 | function getFromCache(chatId: number, mode: string, day: number): CacheData | null { |
| 61 | const key = getCacheKey(chatId, mode, day); |
| 62 | const cached = cache.get(key); |
| 63 | if (cached && Date.now() - cached.timestamp < CACHE_TTL) { |
| 64 | return cached.data; |
| 65 | } |
no outgoing calls
no test coverage detected