C# Class Rebel.Cms.Web.Mvc.ViewEngines.TwoLevelViewCache

A custom view cache to improve performance of view lookups. Reference: http://blogs.msdn.com/b/marcinon/archive/2011/08/16/optimizing-mvc-view-lookup-performance.aspx
Inheritance: IViewLocationCache
Mostra file Open project: RebelCMS/rebelcmsxu5

Public Methods

Method Description
GetViewLocation ( System.Web.HttpContextBase httpContext, string key ) : string
InsertViewLocation ( System.Web.HttpContextBase httpContext, string key, string virtualPath ) : void
TwoLevelViewCache ( IViewLocationCache cache ) : System.Collections.Generic

Private Methods

Method Description
GetRequestCache ( System.Web.HttpContextBase httpContext ) : string>.IDictionary

Method Details

GetViewLocation() public method

public GetViewLocation ( System.Web.HttpContextBase httpContext, string key ) : string
httpContext System.Web.HttpContextBase
key string
return string

InsertViewLocation() public method

public InsertViewLocation ( System.Web.HttpContextBase httpContext, string key, string virtualPath ) : void
httpContext System.Web.HttpContextBase
key string
virtualPath string
return void

TwoLevelViewCache() public method

public TwoLevelViewCache ( IViewLocationCache cache ) : System.Collections.Generic
cache IViewLocationCache
return System.Collections.Generic