I\'m trying to implement a MongoDB / Memory combined Output Cache Provider to use with MVC4. Here is my initial implementation:
public class CustomOutputCachePro
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