Exemplo n.º 1
0
        public object GetGenerateLatestCache()
        {
            var s = new OverviewCache();

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

            return(Ok());
        }
Exemplo n.º 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));
        }