Ejemplo n.º 1
0
        public void ChangeProductStatistics(Int64 pid)
        {
            var proKey = RedisKeyConst.GetProductStatisticsKey(pid).Key;

            using (WcfTcpClient <IProductService> clint = factory.CreateClient <IProductService>())
            {
                var item = clint.Channel.GetProductStatistics(pid);
                if (item != null)
                {
                    CN100.Redis.Client.RedisClientUtility.SetData <ProductStatisticsModel>(proKey, item);
                }
                else
                {
                    DeleteByKey(proKey);
                }
            }
        }