摘要:
HttpContext//写Stopwatchsw=newStopwatch();sw.Start();for(inti=1;i<=100000;i++){varm=newMan(){age=1,Height=2};HttpContext.Current.Cache[i.ToString()]=m;}sw.Stop();Debug.WriteLine(sw.ElapsedMilliseconds);//读sw.Start();for(intj=1;j<=100000;j++){varm=HttpContext.Current.Cache[j.ToString()];}sw.Stop 阅读全文