读书人

关于cache添加的一段代码~ 看不懂

发布时间: 2012-06-21 13:42:41 作者: rapoo

关于cache添加的一段代码~ 看不懂 求助

C# code
HttpContext.Current.Cache.Add(DummyCacheItemKey, String.Empty, null,            DateTime.MaxValue, TimeSpan.FromMinutes(1), System.Web.Caching.CacheItemPriority.Normal,            new System.Web.Caching.CacheItemRemovedCallback((x, y, z) => new System.Net.WebClient().DownloadData("HTTP://127.0.0.1/index.aspx" )));


new System.Web.Caching.CacheItemRemovedCallback((x, y, z) => new System.Net.WebClient().DownloadData("HTTP://127.0.0.1/index.aspx" ))
中xyz 是什么 ?要干什么~

[解决办法]
貌似是lambda表达式
[解决办法]
CacheItemRemovedCallback转到定义 ,看看.

读书人网 >asp.net

热点推荐