Table of Contents

Interface IViewLocationCache

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

Defines the methods that are required in order to cache view locations in memory.

public interface IViewLocationCache

Methods

GetViewLocation(HttpContextBase, string)

Gets the view location by using the specified HTTP context and the cache key.

string GetViewLocation(HttpContextBase httpContext, string key)

Parameters

httpContext HttpContextBase

The HTTP context.

key string

The cache key.

Returns

string

The view location.

InsertViewLocation(HttpContextBase, string, string)

Inserts the specified view location into the cache by using the specified HTTP context and the cache key.

void InsertViewLocation(HttpContextBase httpContext, string key, string virtualPath)

Parameters

httpContext HttpContextBase

The HTTP context.

key string

The cache key.

virtualPath string

The virtual path.