当前位置: 代码迷 >> ASP.NET >> 如何查看cache里的内容?速度结帖~
  详细解决方案

如何查看cache里的内容?速度结帖~

热度:8680   发布时间:2013-02-25 00:00:00.0
怎么查看cache里的内容?高手进.速度结帖~~~~~
比如通过
  IDictionaryEnumerator CacheEnum = HttpRuntime.Cache.GetEnumerator();
  while (CacheEnum.MoveNext())
  {
  str += "缓存名 <b> [ " + CacheEnum.Key + "] </b> <br /> ";
  }
  this.Label1.Text = "当前网站总缓存数: " + HttpRuntime.Cache.Count + " <br /> " + str;  
知道CacheEnum.Key 或Value后,怎么查看指定的Cache里的内容.
好比 CacheEnum.Value 是 abc 类型是 datarow 类型的.
怎么查看


------解决方案--------------------------------------------------------
GetType()就可以看类型了
------解决方案--------------------------------------------------------
CTYPE(cache(cachename),datarow)
------解决方案--------------------------------------------------------
设置webconfig trace节点,可以查看这些内容
  相关解决方案