Click or drag to resize
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.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
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: TData
See Also