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

Function buildCacheKey

supabase/functions/ndvi-timeseries/index.ts:20–22  ·  view source on GitHub ↗
(coords: [number, number][])

Source from the content-addressed store, hash-verified

18}
19
20function buildCacheKey(coords: [number, number][]) {
21 return JSON.stringify(coords.map(([lon, lat]) => [Number(lon.toFixed(5)), Number(lat.toFixed(5))]));
22}
23
24function getCachedTimeseries(key: string, allowStale = false) {
25 const cached = timeseriesCache.get(key);

Callers 1

index.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected