ChatIncrementalCacheWithCurrentStateWrapperTData, TPrimaryKey Class |
Namespace: CMS.Chat
public class ChatIncrementalCacheWithCurrentStateWrapper<TData, TPrimaryKey> where TData : Object, IChatCacheableWithCurrentState<TPrimaryKey>
The ChatIncrementalCacheWithCurrentStateWrapperTData, TPrimaryKey type exposes the following members.
Name | Description | |
---|---|---|
ChatIncrementalCacheWithCurrentStateWrapperTData, TPrimaryKey |
Constructor. Inits inner ChatParametrizedCacheWrapper and ChatCurrentStateCacheWrapper
|
Name | Description | |
---|---|---|
CurrentState |
Current state of items. It is not older than 'maxDelay'
|
Name | Description | |
---|---|---|
ForceGetItem |
Tries to get item from CurrentState. If item wasn't found, current state is reloaded and then it tries again.
| |
GetCurrentStateWithLastChange |
Gets current state together with time of last change.
| |
GetLatestData |
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.
| |
InvalidateCurrentState |
Invalidates current state. Before next fetch of current state data (property CurrentState, method UpdateAndTryGetItem(), etc.)
data will be reloaded from data source.
| |
UpdateAndTryGetItem |
Invalidates cache and then tries to get item.
|