Click or drag to resize
HandlebarsViewEngineGetCacheKey Method
Gets the cachekey for the specified path.

Namespace: HandlebarsDotNet.Mvc
Assembly: HandlebarsDotNet.Mvc (in HandlebarsDotNet.Mvc.dll) Version: 1.0.0-beta
Syntax
protected virtual string GetCacheKey(
	ControllerContext controllerContext,
	string path
)

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: String
The 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