public object GetGenerateLatestCache() { var s = new OverviewCache(); s.GenerateCache((a) => GetLatesDailyObsInner(a)); return(Ok()); }
public StationEntry[] GetLatesDailyObs(string element = defaultElement, int limit = 10000) { //check cache var cache = new OverviewCache(); if (cache.IsCached(element)) { return(cache.ReadCache(element)); } return(GetLatesDailyObsInner(element, limit)); }