Click or drag to resize
ChatParametrizedCacheWrapperTData, TParam Class
This class represents parametrized cache. This is cache which takes params in form of IChatCacheableParam, makes hash code from this param (CacheKey) and if this key exists in cache, it returns cache. If key does not exists, it uses function of type FetchDataFunc to get data and store them in cache. Function FetchDataFunc returns IEnumerable. This means that this cache is useful only for sequences.
Inheritance Hierarchy
SystemObject
  CMS.ChatChatParametrizedCacheWrapperTData, TParam

Namespace: CMS.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 10.0.0
Syntax
C#
public class ChatParametrizedCacheWrapper<TData, TParam>
where TData : IChatIncrementalCacheable
where TParam : IChatCacheableParam

Type Parameters

TData
Type of cached data
TParam
Type of param

The ChatParametrizedCacheWrapperTData, TParam type exposes the following members.

Constructors
Methods
  NameDescription
Public methodGetData(TParam)
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.
Public methodGetData(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.
Top
See Also