예제 #1
0
        public FdaResult FdaResults(string product, string region)
        {
            var       key = string.Format("FdaResults-{0}-{1}", product, region);
            FdaResult result;

            if (!_cache.TryGetValue(key, out result))
            {
                var wrapper = new ShopAwareService();
                result = wrapper.GetFdaResult(product, region);

                _cache.Set(key, result);
            }

            return(result);
        }
예제 #2
0
        public SearchSummary QuickSearch(string product, string region)
        {
            var           key = string.Format("QuickSearch-{0}-{1}", product, region);
            SearchSummary result;

            if (!_cache.TryGetValue(key, out result))
            {
                var wrapper = new ShopAwareService();
                result = wrapper.GetSearchSummary(product, region);

                _cache.Set(key, result);
            }

            return(result);
        }