How can I see what's in my HttpContext.Cache

假如想象 提交于 2019-12-19 06:59:06

问题


Are there any good tools to see how much data (or even better the values of that data) is in my HttpContext.Cache?


回答1:


Isis is a control panel for ASP.NET applications that allows easy visibility into the application's assemblies (debug or not), logging, errors, cache, session, performance counters, and more. ( You have to compile it from source. )

CacheManager although quite old - it just works.

Edit: Based on CacheManager i wrote my own implementation, where i use Jayrock.Json to visualize data values of complex types / lists as a readable json.




回答2:


Update; The previous link to Scott Cate's article is gone now. Since there was quite a bit of code there (which is not easy to summarize here without reproducing the entire blog), I'm updating this answer with an easier choice: Aspy

Aspy is totally free ASP.NET Session and Cache online viewer. It can be integrated with any ASP.NET web application including ASP.NET MVC and Web API. It is ready to use right after the installation. More detailed description is available on our website:

Available on NuGet and needs no coding at all.

PM> Install-Package Aspy

Short Screencast



来源:https://stackoverflow.com/questions/7033081/how-can-i-see-whats-in-my-httpcontext-cache

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!