(data: Partial<CacheData>)
| 123 | await this.db.write(); |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | // ==================== Timer tracking for safe cleanup ==================== |
| 128 | const pendingTimers = new Set<ReturnType<typeof setTimeout>>(); |
| 129 | |
| 130 | function trackTimer(timer: ReturnType<typeof setTimeout>): ReturnType<typeof setTimeout> { |
| 131 | pendingTimers.add(timer); |
| 132 | return timer; |
| 133 | } |
no test coverage detected