Click or drag to resize
ChatCacheDictionaryWrapperTKey, TValue Constructor
Constructs cache dictionary wrapper.

Namespace: CMS.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 12.0.0
Syntax
C#
public ChatCacheDictionaryWrapper(
	string uniqueKey,
	Func<TKey, TValue> fetchDataFunc,
	Nullable<TimeSpan> cachePersistence,
	Nullable<TimeSpan> slidingExpiration
)

Parameters

uniqueKey
Type: SystemString
Unique key for caching
fetchDataFunc
Type: SystemFuncTKey, TValue
Function used to get one item by its key
cachePersistence
Type: SystemNullableTimeSpan
Item in cache will stay in cache for the amount of time specified by this parameter. Then it will be renewed by calling fetchDataFunc. (not used if null).
slidingExpiration
Type: SystemNullableTimeSpan
Item will stay in cache as long as it is accessed once in that time. (not used if null)
See Also