Enum CachedDataDictionaryUpdateStrategy
- Namespace
- Common
- Assembly
- Lykke.Common.dll
CachedDataDictionary<TKey, TValue> cache update strategies
public enum CachedDataDictionaryUpdateStrategy
- Extension Methods
Fields
AllowConcurrentUpdates = 0
If cache is expired or not had been initialized yet and CachedDataDictionary<TKey, TValue> recieves multiple concurrent calls which wants to obtain cached data, the getData delegate of the CachedDataDictionary<TKey, TValue> constructor can be called multiple times concurrently.
UseSynchronizedUpdates = 1
If cache is expired or not had benn initialized yet and CachedDataDictionary<TKey, TValue> recieves multiple concurrent calls which wants to obtain cached data, the getData delegate of the CachedDataDictionary<TKey, TValue> constructor will be called only once. Other calls will retrieve data from the cache.