I use [OutputCacheAttribute] to cache some actions. Everything works fine. Let's say I set its Duration property to 1 hour. But I want to be able to clear cached values. Is it possible?
相关问题
- MVC-Routing,Why i can not ignore defaults,The matc
- parameters in routing do not work MVC 3
- There is no ViewData item with the key 'taskTy
- TextBoxFor decimal
- jsp caching tag library
相关文章
- How to get a list of connected clients on SignalR
- How do you redirect to the calling page in ASP.NET
- Change color of bars depending on value in Highcha
- The program '[4432] iisexpress.exe' has ex
- ASP.Net MVC 4 Bundles
- Is there a google API to read cached content? [clo
- How to get server path of physical path ?
- Cannot implicitly convert Web.Http.Results.JsonRes
After looking at [OutputCacheAttribute] source code, it seems that the only possible solution is to implement a new class derived from MemoryCache and set it OutputCacheAttribute.ChildActionCache property. This class will be use some custom prefix for all cached keys, so I'll be quite easy to find them (and then remove from cache).