CacheHelperCacheTData Method (FuncCacheSettings, TData, 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: 13.0.131
Syntax public static TData Cache<TData>(
Func<CacheSettings, TData> loadMethod,
CacheSettings settings
)
Parameters
- loadMethod
- Type: SystemFuncCacheSettings, TData
Method that loads the data - settings
- Type: CMS.HelpersCacheSettings
Cache settings
Type Parameters
- TData
Return Value
Type:
TDataRemarks See Also