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.ChatAssembly: CMS.Chat (in CMS.Chat.dll) Version: 9.0.0
Syntax 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:
ICacheWrapperResponseTDataSee Also