Click or drag to resize
ChatIncrementalCacheWithCurrentStateWrapperTData, TPrimaryKey Class
This cache wrapper combines CurrentStateWrapper and ParametrizedCacheWrapper. Where parametrized cache wrapper takes only one argument - DateTime. This argument is automatically wrapped in IChatCacheableParam.
Inheritance Hierarchy
SystemObject
  CMS.ChatChatIncrementalCacheWithCurrentStateWrapperTData, TPrimaryKey

Namespace: CMS.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 10.0.0
Syntax
C#
public class ChatIncrementalCacheWithCurrentStateWrapper<TData, TPrimaryKey>
where TData : Object, IChatCacheableWithCurrentState<TPrimaryKey>

Type Parameters

TData
Type of data
TPrimaryKey
Type of primary key

The ChatIncrementalCacheWithCurrentStateWrapperTData, TPrimaryKey type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCurrentState
Current state of items. It is not older than 'maxDelay'
Top
Methods
  NameDescription
Public methodForceGetItem
Tries to get item from CurrentState. If item wasn't found, current state is reloaded and then it tries again.
Public methodGetCurrentStateWithLastChange
Gets current state together with time of last change.
Public methodGetLatestData
Gets data from cache (if item in cache with key made from changedSince exists). Otherwise it gets items from fetchChangedDataFunc. This function returns only data changed after changedSince. Null is returned if nothing was found.
Public methodInvalidateCurrentState
Invalidates current state. Before next fetch of current state data (property CurrentState, method UpdateAndTryGetItem(), etc.) data will be reloaded from data source.
Public methodUpdateAndTryGetItem
Invalidates cache and then tries to get item.
Top
See Also