Click or drag to resize
ChatParametrizedCacheWrapperTData, TParamGetData Method (TParam, FuncTData, Boolean)
Gets data from cache (if item in cache with key made from param exists) or from function FetchDataFunc. Post cache filter is applied to data after taking it from cache. Null is returned if nothing was found.

Namespace: CMS.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 8.2.23
Syntax
C#
public ICacheWrapperResponse<TData> GetData(
	TParam param,
	Func<TData, bool> postCacheFilter
)

Parameters

param
Type: TParam
Parameter - data will be stored to (and retrieved from) cache based on this parameter.
postCacheFilter
Type: SystemFuncTData, Boolean
Post cache filter - filter which will be applied to data after retrieval from cache

Return Value

Type: ICacheWrapperResponseTData
See Also