Beispiel #1
0
        public object GetGenerateLatestCache()
        {
            var s = new OverviewCache();

            s.GenerateCache((a) => GetLatesDailyObsInner(a));

            return(Ok());
        }
Beispiel #2
0
        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));
        }