IViewLocationCache Interface¶
Summary¶
Specifies the contracts for caching view locations generated by [Microsoft.AspNet.Mvc.Razor.IViewLocationExpander](Microsoft.AspNet.Mvc.Razor.IViewLocationExpander.yml).
Methods¶
-
Get
(Microsoft.AspNet.Mvc.Razor.ViewLocationExpanderContext)¶ Gets a cached view location based on the specified <paramref name=”context” />.
Arguments: - context (Microsoft.AspNet.Mvc.Razor.ViewLocationExpanderContext) – The [Microsoft.AspNet.Mvc.Razor.ViewLocationExpanderContext](Microsoft.AspNet.Mvc.Razor.ViewLocationExpanderContext.yml) for the current view location expansion.
Return type: System.String
Returns: The cached location, if available, <c>null</c> otherwise.
string Get(ViewLocationExpanderContext context)
-
Set
(Microsoft.AspNet.Mvc.Razor.ViewLocationExpanderContext, System.String)¶ Adds a cache entry for values specified by <paramref name=”context” />.
Arguments: - context (Microsoft.AspNet.Mvc.Razor.ViewLocationExpanderContext) – The [Microsoft.AspNet.Mvc.Razor.ViewLocationExpanderContext](Microsoft.AspNet.Mvc.Razor.ViewLocationExpanderContext.yml) for the current view location expansion.
- value (System.String) – The view location that is to be cached.
void Set(ViewLocationExpanderContext context, string value)
-