public static string GetWebBulletinListForHomeWrapper(int topNum) { CacheObjSetting cacheSetting = StaticCacheObjSettings.SiteHomeWebBulletinListCacheSetting; string key = cacheSetting.CacheKey; int duration = cacheSetting.CacheDuration; string homeWebBulletinListHTML = CacheObj <string> .GetCachedObj(key, duration, GetWebBulletinListForHome(topNum)); return(homeWebBulletinListHTML); }
public ProductDetailHelper(int productSysNo) { string key = String.Format(DynomicCacheObjSettings.ProductBaiscInfoCacheSettings.CacheKey, productSysNo); int duration = DynomicCacheObjSettings.ProductBaiscInfoCacheSettings.CacheDuration; productDetail = CacheObj <ProductDetailModel> .GetCachedObj(key, duration, ProductDetailBasicService.GetProductDetailBasicInfo(productSysNo)); //productDetail = ProductDetailBasicService.GetProductDetailBasicInfo(productSysNo); }
public static string GetPanicProductsForHomeWrapper() { CacheObjSetting cacheSetting = StaticCacheObjSettings.SiteHomePanicProductListCacheSetting; string key = cacheSetting.CacheKey; int duration = cacheSetting.CacheDuration; string HomeInComingProductHTML = CacheObj <string> .GetCachedObj(key, duration, GetPanicProductsForHome()); return(HomeInComingProductHTML); }
public static string GetBrandsForCategoryOneProductsWrapper(string c1SysNo) { CacheObjSetting cacheSetting = DynomicCacheObjSettings.HomeCategoryOneProductBrandsDisplayCacheSettings; string key = String.Format(cacheSetting.CacheKey, c1SysNo); int duration = cacheSetting.CacheDuration; string homeBrandsHTML = CacheObj <string> .GetCachedObj(key, duration, GetBrandsForCategoryOneProducts(c1SysNo)); return(homeBrandsHTML); }
public static string GetSiteStaticAdWrapper(int positionId, string cssClass, string width, string height) { CacheObjSetting cacheSetting = DynomicCacheObjSettings.SiteADCacheSetting; string key = String.Format(cacheSetting.CacheKey, positionId); int duration = cacheSetting.CacheDuration; string siteAdHTML = CacheObj <string> .GetCachedObj(key, duration, GetSiteStaticAd(positionId, cssClass, width, height)); return(siteAdHTML); }
public static string GetSlideAdWrapper(int positionId) { CacheObjSetting cacheSetting = DynomicCacheObjSettings.SiteADCacheSetting; string key = String.Format(cacheSetting.CacheKey, positionId); int duration = cacheSetting.CacheDuration; string slideAdHTML = CacheObj <string> .GetCachedObj(key, duration, GetSlideAd(positionId)); return(slideAdHTML); }
public string InitSubCategoryNavigationWrapper(int c1SysNo) { CacheObjSetting cacheSetting = DynomicCacheObjSettings.SiteSubCategoryNavigationCacheSetting; string key = String.Concat(cacheSetting.CacheKey, c1SysNo); int duration = cacheSetting.CacheDuration; string categoryNavHTML = String.Empty; categoryNavHTML = CacheObj <string> .GetCachedObj(key, duration, InitSubCategoryNavigation(c1SysNo)); return(categoryNavHTML); }
/// <summary> /// 生成主页面的Top Category Navigation的包装方法 /// 获得被缓存住的Top Category Navigation HTML字符串 /// </summary> /// <returns></returns> public string InitCategoryNavigationWrapper() { CacheObjSetting cacheSetting = StaticCacheObjSettings.SiteTopCategoryNavigationCacheSetting; string key = cacheSetting.CacheKey; int duration = cacheSetting.CacheDuration; string categoryNavHTML = String.Empty; categoryNavHTML = CacheObj <string> .GetCachedObj(key, duration, InitCategoryNavigation()); return(categoryNavHTML); }