Mar 26, 2012 at 9:16 PM
Edited Mar 26, 2012 at 9:17 PM
Suppose one were to use an injected ICacheManager in their module, to cache some infrequently-changing data.
And suppose one were to call the .Get method of the ICacheManager, and
not call the AcquireContext.Monitor action to force an expiration at any point.
How long would that item be cached? Until the app pool recycles? Or, is there some default cache duration through the DefaultCacheManager, which would expire sooner?
In other words, my code looks like this --
var cacheItems = _cacheManager.Get("Products_Brands", ctx =>
//notice, no reference to ctx.Monitor...
return _repository.Table.OrderBy(x => x.Name).ToList();
At what point can I expect cacheItems to contain refreshed data?