 | HandlebarsViewEngineGetCacheKey Method |
Gets the cachekey for the specified path.
Namespace: HandlebarsDotNet.MvcAssembly: HandlebarsDotNet.Mvc (in HandlebarsDotNet.Mvc.dll) Version: 1.0.0-beta
Syntaxprotected virtual string GetCacheKey(
ControllerContext controllerContext,
string path
)
Protected Overridable Function GetCacheKey (
controllerContext As ControllerContext,
path As String
) As String
protected:
virtual String^ GetCacheKey(
ControllerContext^ controllerContext,
String^ path
)
abstract GetCacheKey :
controllerContext : ControllerContext *
path : string -> string
override GetCacheKey :
controllerContext : ControllerContext *
path : string -> string
Parameters
- controllerContext
- Type: ControllerContext
The controller context. - path
- Type: SystemString
The path to create the cachekey for, usually in the form "~/Views/Home/Index.hbs". Can also be either of two (currently) special values: "global" for the global cachekey, and "config" for the cachekey used for this combination of area+controller.
Return Value
Type:
StringThe cache key to use for the specified path.
Remarks
This can be overridden in a subclass to for example provide tenant-specific cachekeys.
See Also