Exemple #1
0
 private void InitializeCache(IEnumerable <T> data)
 {
     CacheLock.Write(Lock, () => {
         primaryCache.Initialize(data);
         secondaryCaches.Initialize(data);
         cacheStorageStrategy.Save("Primary", primaryCache);
         cacheStorageStrategy.Save("Secondary", secondaryCaches);
     });
 }