MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / register

Method register

src/cache/CacheManager.ts:94–99  ·  view source on GitHub ↗

* Register a cache with the manager. * @param entry Cache entry with name, priority, and clear function

(entry: CacheEntry)

Source from the content-addressed store, hash-verified

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).

Callers 4

attachFinalizerFunction · 0.80
fFunction · 0.80
createDefaultDevicesFunction · 0.80
registerAllCachesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected