Selecting custom output cache provider for specific controller actions

后端 未结 3 534
渐次进展
渐次进展 2021-02-06 05:50

I\'m trying to implement a MongoDB / Memory combined Output Cache Provider to use with MVC4. Here is my initial implementation:

public class CustomOutputCachePro         


        
3条回答
  •  不思量自难忘°
    2021-02-06 06:21

    Check this article from MSDN Magazine (with source code and examples referencing MongoDB & Azure as distributed cache providers) may well provide some insight http://msdn.microsoft.com/en-us/magazine/gg650661.aspx

    EDIT

    Can you use the CacheProfile setting to specify the provider as suggested here?

    http://www.dotnetcurry.com/ShowArticle.aspx?ID=665

提交回复
热议问题