httpcontext.cache

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

Why i have to put my object twice in HttpContext Cache before it keep it for good?

安稳与你 提交于 2019-12-12 18:23:54
问题 When i cache an object to the HttpContext Cache , my object disappear on the next read and I must reinsert the object a second time (not always but 90% of the time). After that, the object stay there without any problem. Here's what happen: Start debugging the mvc project Read the age from the cache The age is null so i put 50 in the variable and then insert it in the cache The CacheItemRemovedCallback gets executed immediately when the response to the client is done. The

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

杀马特。学长 韩版系。学妹 提交于 2019-12-01 05:10:35
Are there any good tools to see how much data (or even better the values of that data) is in my HttpContext.Cache ? 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. Update; The previous link to Scott Cate's