MCPcopy Create free account
hub / github.com/agegr/pi-web / invalidateModelsCache

Function invalidateModelsCache

lib/models-cache.ts:33–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31}
32
33export function invalidateModelsCache(): void {
34 const state = getModelsCacheState();
35 state.generation += 1;
36 state.entries.clear();
37 state.inFlight.clear();
38}
39
40export function loadModelsWithCache(cwd: string, loader: () => Promise<ModelsData>): Promise<ModelsData> {
41 const state = getModelsCacheState();

Callers 7

sendMethod · 0.90
POSTFunction · 0.90
DELETEFunction · 0.90
startFunction · 0.90
POSTFunction · 0.90
PUTFunction · 0.90

Calls 1

getModelsCacheStateFunction · 0.85

Tested by

no test coverage detected