* Register a cache with the manager. * @param entry Cache entry with name, priority, and clear function
(entry: CacheEntry)
| 92 | * @param entry Cache entry with name, priority, and clear function |
| 93 | */ |
| 94 | register(entry: CacheEntry): void { |
| 95 | if (this.entries.has(entry.name)) { |
| 96 | appLogger.warn(`[CacheManager] Cache "${entry.name}" already registered, overwriting`); |
| 97 | } |
| 98 | this.entries.set(entry.name, entry); |
| 99 | } |
| 100 | |
| 101 | /** |
| 102 | * Unregister a cache (useful for testing). |
no outgoing calls
no test coverage detected