MCPcopy Create free account
hub / github.com/CodeFox-Repo/codefox / updateCache

Function updateCache

frontend/src/hooks/useModels.ts:43–49  ·  view source on GitHub ↗
(models: string[])

Source from the content-addressed store, hash-verified

41 };
42
43 const updateCache = (models: string[]) => {
44 const cacheData: ModelsCache = {
45 models,
46 lastUpdate: Date.now(),
47 };
48 sessionStorage.setItem(LocalStore.models, JSON.stringify(cacheData));
49 };
50
51 const { data, loading, error } = useQuery<{
52 getAvailableModelTags: string[];

Callers 1

useModelsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected