コード例 #1
0
        /// <summary>
        /// 清空购物车
        /// </summary>
        /// <param name="CustomerID"></param>
        /// <returns></returns>
        public bool ClearShopCart(int CustomerID)
        {
            string key = "ShopCart_" + CustomerID.ToString();

            if (_IRedisServer.KeyDelete(key))
            {
                return(true);
            }
            else
            {
                throw new Exception("删除购物车失败!");
            }
        }