简体   繁体   English

在ASP.NET MVC中查看缓存的数据

[英]View cached data in ASP.NET MVC

Is there any third party tool or something in visual studio that lets you see the cached objects? 是否有任何第三方工具或视觉工作室中的东西可以让你看到缓存的对象?

For example, an action is caching data (varied by parameters) and I want to see the cached objects and the attributes (like which parameter values were sent to the action when this data was cached). 例如,一个动作是缓存数据(由参数改变),我希望看到缓存的对象和属性(比如在缓存此数据时将哪些参数值发送到操作)。

You can find more answers to what you might desire on the Stackoverflow question: How to display the content of asp.net cache? 您可以在Stackoverflow问题上找到更多可能需要的答案: 如何显示asp.net缓存的内容?

Basically you can create a page to view all cached items from your application. 基本上,您可以创建一个页面来查看应用程序中的所有缓存项。 After that, it can customize and UI pump it to your needs and objectives. 之后,它可以根据您的需求和目标定制和UI。

If you just need to debug, then you can use Ringer's solution displayed on your comments. 如果您只需要调试,那么您可以使用评论中显示的Ringer解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM