DefaultCachingProvider
Defined in RazorEngine.dll.
The default caching provider (See ICachingProvider).
This implementation does a very simple in-memory caching.
It can handle when the same template is used with multiple model-types.
Constructors
Constructor | Description |
new()
Signature: unit -> unit
|
Initializes a new instance of the DefaultCachingProvider class. |
Instance members
Instance member | Description |
CacheTemplate(template, templateKey)
Signature: (template:ICompiledTemplate * templateKey:ITemplateKey) -> unit
Modifiers: abstract |
Caches a template. See ICachingProvider.CacheTemplate. |
Dispose()
Signature: unit -> unit
Modifiers: abstract |
Dispose the instance. |
TryRetrieveTemplate(...)
Signature: (templateKey:ITemplateKey * modelType:Type * compiledTemplate:byref<ICompiledTemplate>) -> bool
Modifiers: abstract |
|
TypeLoader()
Signature: unit -> TypeLoader
Modifiers: abstract |
The manages DefaultCachingProvider.TypeLoader. See ICachingProvider.TypeLoader |
Static members
Static member | Description |
GetModelTypeKey(modelType)
Signature: modelType:Type -> Type
|
Get the key used within a dictionary for a modelType. |