Selecting custom output cache provider for specific controller actions

后端 未结 3 532
渐次进展
渐次进展 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:23

    If i where you, i would try to write MyOutputCachAttribute inherited from OutputCachAttribute that will choose provider by its parameter.

提交回复
热议问题