开发者

"Seeing" what is in the asp.net data cache

开发者 https://www.devze.com 2023-01-18 06:10 出处:网络
Is there a way to see what is in the ASP.NET data cache at any 开发者_JS百科given time? For example to render the contents as a hashtable view (key/object id)?http://aspalliance.com/cachemanager/Cache

Is there a way to see what is in the ASP.NET data cache at any 开发者_JS百科given time? For example to render the contents as a hashtable view (key/object id)?


http://aspalliance.com/cachemanager/


Cache implements IEnumerable; you should be able to loop through it using foreach... the enumerator implements this:

IDictionaryEnumerator GetEnumerator();


Performance counters could be of help

http://blogs.msdn.com/b/simonince/archive/2009/07/20/monitor-your-asp-net-cache-api-behaviour.aspx

http://msdn.microsoft.com/en-us/library/fxk122b4.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消