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: 8.2.23
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
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
See Also