示例#1
0
        public SearchResult Search(SearchCriteria criteria)
        {
            var cacheKey = GetCacheKey("CatalogSearchService.Search", criteria.GetCacheKey());
            var retVal   = _cacheManager.Get(cacheKey, RegionName, () => _searchService.Search(criteria));

            return(retVal);
        }
示例#2
0
        public SearchResult SearchStores(SearchCriteria criteria)
        {
            var cacheKey = GetCacheKey("StoreService.SearchStores", criteria.GetCacheKey());
            var retVal   = _cacheManager.Get(cacheKey, RegionName, () => _storeService.SearchStores(criteria));

            return(retVal);
        }