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

后端 未结 2 1899

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

2条回答
  •  半阙折子戏
    2021-01-12 19:12

    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

提交回复
热议问题