DefaultViewLocationCache Class

Definition

Represents a memory cache for view locations.

public class DefaultViewLocationCache : System.Web.Mvc.IViewLocationCache
type DefaultViewLocationCache = class
    interface IViewLocationCache
Public Class DefaultViewLocationCache
Implements IViewLocationCache
Inheritance
DefaultViewLocationCache
Implements

Constructors

DefaultViewLocationCache()

Initializes a new instance of the DefaultViewLocationCache class.

DefaultViewLocationCache(TimeSpan)

Initializes a new instance of the DefaultViewLocationCache class by using the specified cache time span.

Fields

Null

Creates an empty view location cache.

Properties

TimeSpan

Gets or sets the cache time span.

Methods

GetViewLocation(HttpContextBase, String)

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

InsertViewLocation(HttpContextBase, String, String)

Inserts the view in the specified virtual path by using the specified HTTP context, cache key, and virtual path.

Applies to