Exemple #1
0
 public CachingDictionary(PersistantDictionary <TKey, TValue> persistantDictionary, ILocalCache <TKey, TValue> localCache)
 {
     _persistantDictionary = persistantDictionary;
     _localCache           = localCache;
 }
Exemple #2
0
 public CachingDictionary(PersistantDictionary <TKey, TValue> persistantDictionary, int maxCacheCount)
 {
     _persistantDictionary = persistantDictionary;
     _localDictionary      = new Dictionary <TKey, TValue>(maxCacheCount);
     _localKeyQueue        = new CircularBuffer <TKey>(maxCacheCount);
 }