CacheHelperCacheTData Method (FuncTData, CacheSettings) |
Wraps the operation to a cached section. This method supports progressive caching and is able to distribute unhandled exceptions to other simultaneously running threads.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax public static TData Cache<TData>(
Func<TData> loadMethod,
CacheSettings settings
)
Parameters
- loadMethod
- Type: SystemFuncTData
Method that loads the data - settings
- Type: CMS.HelpersCacheSettings
Cache settings
Type Parameters
- TData
Return Value
Type:
TDataSee Also