예제 #1
0
 /// <summary>
 /// 清理商品分类缓存
 /// </summary>
 /// <param name="categorySysNo"></param>
 /// <remarks>2013-08-07 邵斌 创建</remarks>
 public static void ProductCategory(int categorySysNo)
 {
     DeleteCache.Delete(CacheKeys.Items.CategoryInfoWithParent_, categorySysNo.ToString());
     DeleteCache.Delete(CacheKeys.Items.SingleCategoryInfo_, categorySysNo.ToString());
     DeleteCache.Delete(CacheKeys.Items.ProductMasterCategoryRoute_, categorySysNo.ToString());
     DeleteCache.Delete(CacheKeys.Items.BackendAllPdCategoryZtreeNodeData);
 }
예제 #2
0
        /// <summary>
        /// 删除商品消息信息
        /// </summary>
        /// <param name="productSysNo">商品系统编号</param>
        /// <remarks>2013-08-07 邵斌 创建</remarks>
        public static void ProductInfo(int productSysNo)
        {
            string relationCode = Hyt.BLL.Product.PdProductAssociationBo.Instance.GetRelationCode(productSysNo);

            if (!string.IsNullOrWhiteSpace(relationCode))
            {
                DeleteCache.Delete(CacheKeys.Items.ProductAssociation_, relationCode);
                DeleteCache.Delete(CacheKeys.Items.ProductAssociationAllAssociationAttribute_, relationCode);
            }
            DeleteCache.Delete(CacheKeys.Items.ProductDetailInfo_, productSysNo.ToString());
            DeleteCache.Delete(CacheKeys.Items.ProductMasterCategoryRoute_, productSysNo.ToString());
            DeleteCache.Delete(CacheKeys.Items.ProductDetialOffsaleRcdList_, productSysNo.ToString());
            DeleteCache.Delete(CacheKeys.Items.ProductAssociationAttribute_, productSysNo.ToString());
            DeleteCache.Delete(CacheKeys.Items.ProductAttribute_, productSysNo.ToString());
            DeleteCache.Delete(CacheKeys.Items.OtherCustmerBought_, productSysNo.ToString());
            DeleteCache.Delete(CacheKeys.Items.FollowWithByProductSysNo_, productSysNo.ToString());
        }
예제 #3
0
 /// <summary>
 /// 根据广告组代码删除网站广告缓存
 /// </summary>
 /// <param name="groupCode">广告组代码</param>
 /// <remarks>2013-08-07 黄波 创建</remarks>
 public static void WebAdvertItem(string groupCode)
 {
     DeleteCache.Delete(CacheKeys.Items.WebAdvertItem_, groupCode);
 }
예제 #4
0
 /// <summary>
 /// 删除搜索关键字缓存
 /// </summary>
 /// <remarks>2013-08-07 黄波 创建</remarks>
 public static void SearchKeys()
 {
     DeleteCache.Delete(CacheKeys.Items.SearchKeys);
 }
예제 #5
0
 /// <summary>
 /// 删除分销商产品价格
 /// </summary>
 /// <param name="dealerSysNo">分销商编号</param>
 /// <param name="productSysNo">产品编号</param>
 /// <remarks>2016-1-14 杨浩 创建</remarks>
 public static void StoresProduct(int dealerSysNo, int productSysNo)
 {
     DeleteCache.Delete(CacheKeys.Items.StoresProduct_, dealerSysNo + "_" + productSysNo);
 }
예제 #6
0
 /// <summary>
 /// 删除分销商相关缓存
 /// </summary>
 /// <param name="dealerSysNo">分销商编号</param>
 /// <remarks>2016-1-14 杨浩 创建</remarks>
 public static void Store(int dealerSysNo)
 {
     DeleteCache.Delete(CacheKeys.Items.StoreAll);
     DeleteCache.Delete(CacheKeys.Items.StoresInfo_, dealerSysNo.ToString());
 }
예제 #7
0
 /// <summary>
 /// 清理新闻分类缓存
 /// </summary>
 /// <param name="categorySysNo"></param>
 /// <remarks>2013-08-07 邵斌 创建</remarks>
 public static void NewsCategory(int categorySysNo)
 {
     DeleteCache.Delete(CacheKeys.Items.NewsCategoryInfoWithParent_, categorySysNo.ToString());
     DeleteCache.Delete(CacheKeys.Items.SingleNewsCategoryInfo_, categorySysNo.ToString());
     DeleteCache.Delete(CacheKeys.Items.BackendAllNewsCategoryZtreeNodeData);
 }
예제 #8
0
 /// <summary>
 /// 删除商品评论相关缓存
 /// </summary>
 /// <param name="productSysno">商品系统编号</param>
 /// <remarks>2013-12-24 邵斌 创建</remarks>
 public static void ProductCommentInfo(int productSysno)
 {
     DeleteCache.Delete(CacheKeys.Items.ProductCommentTotalInfo_, productSysno.ToString());
 }