我们使用mvc sitemapprovider作为面包屑的解决方案。 基本的东西工作正常,但现在我们看起来更深入一点,并想知道[SiteMapCacheRelease]属性。 该文档指出,此属性将清除给定缓存键的缓存。在我们的asp.net mvc web项目中使用MVC SitemapProvider与AppFabric
对于我们的应用程序,我们使用AppFabric作为缓存解决方案。问题是,我如何让mvc sitemapProvider强制使用AppFabric呢?
我觉得下面的行负责控制应该使用哪个缓存(在MvcSiteMapContainerInitializer中)。
container.RegisterSingle<System.Runtime.Caching.ObjectCache>(() => System.Runtime.Caching.MemoryCache.Default);
我该如何将这两者结合在一起? (AppFabric使用DataCache,而SiteMapProvider似乎期望ObjectCache ...)