MCPcopy Create free account
hub / github.com/Thanas-R/Virdis / setPlanCache

Function setPlanCache

src/components/CropPlanningSection.tsx:1084–1088  ·  view source on GitHub ↗
(fieldId: string, data: CropPlan)

Source from the content-addressed store, hash-verified

1082 return {};
1083 }
1084}
1085
1086function setPlanCache(cacheKey: string, data: CropPlan) {
1087 const cache = getPlanCache();
1088 cache[cacheKey] = { data, timestamp: Date.now() };
1089 localStorage.setItem(CROP_PLAN_CACHE_KEY, JSON.stringify(cache));
1090}
1091

Callers 1

CropPlanningSectionFunction · 0.85

Calls 1

getPlanCacheFunction · 0.85

Tested by

no test coverage detected