M
Michael
Hi,
I wrote the code to test how CacheItemPriority.NotRemovable works:
Cache.Insert("Time", DateTime.Now,
new System.Web.Caching.CacheDependency(Server.MapPath("Test.txt")),
System.Web.Caching.Cache.NoAbsoluteExpiration,
System.Web.Caching.Cache.NoSlidingExpiration,
CacheItemPriority.NotRemovable, null);
When then Test.txt is changed, the cache item "Time" is unavailable,
so CacheItemPriority.NotRemovable parameter is useless here?
How to use CacheItemPriority.NotRemovable and when should I use it?
Thanks!
I wrote the code to test how CacheItemPriority.NotRemovable works:
Cache.Insert("Time", DateTime.Now,
new System.Web.Caching.CacheDependency(Server.MapPath("Test.txt")),
System.Web.Caching.Cache.NoAbsoluteExpiration,
System.Web.Caching.Cache.NoSlidingExpiration,
CacheItemPriority.NotRemovable, null);
When then Test.txt is changed, the cache item "Time" is unavailable,
so CacheItemPriority.NotRemovable parameter is useless here?
How to use CacheItemPriority.NotRemovable and when should I use it?
Thanks!