В чем разница между "CacheManager" и OutputCache?
public IList<ContentItem> GetHotelPagingAttr(int currRecord, int pageSize, string moduleIds, string orderby,string star)
{
return CacheManager.CacheProvider.GetCache().GetOrCall<IList<ContentItem>>(
cacheKey: String.Format("GetTourPagingAttr"),
function: () =>
{
return _webContent.GetHotelPagingAttr(currRecord, pageSize, moduleIds, orderby, star);
});
}
и
[OutputCache(Duration = 604800, Location = OutputCacheLocation.ServerAndClient)]
public ActionResult ResizeImage(string originalFileLocation, int maxWidth, int maxHeight)
{}