refactor: remove unused variables and imports, and internalize module-specific functions and interfaces.

This commit is contained in:
kuekhaoyang
2025-11-29 12:55:46 +08:00
parent cad70dfb92
commit 76ca595a98
6 changed files with 4 additions and 12 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ const MAX_CACHE_SIZE_MB = 1000; // 1GB
interface CacheMetadata { url: string; videoUrl: string; cachedAt: number; size: number; lastAccessed: number; }
export interface CacheStats { totalEntries: number; totalSizeMB: number; oldestEntry: number; newestEntry: number; }
interface CacheStats { totalEntries: number; totalSizeMB: number; oldestEntry: number; newestEntry: number; }
class CacheManager {
private metadata = new Map<string, CacheMetadata>();