ASP.NET Cache File dependency Clears Session
I am using System.Runtime.Caching(framework 4.5.2) and created a wrapper(static class) over caching. I am using MemoryCache.Default to store all my cache values. I have inserted values(Ienumerable) into the cache with file based dependency. Whenever I change the dependent file, it is clearing the session values. One thing here is that when I keep a normal class(single object) instead of Ienumerable, it invalidates the cache, but sessions are remaining.
Please give me some pointers on this.
链接地址: http://www.djcxy.com/p/60576.html上一篇: 在视图中使用Android选项卡而不是活动的示例?
下一篇: ASP.NET缓存文件相关性清除会话