Exemple #1
0
 public static CacheStrategy <TValue> GetInstance(int maxSize)
 {
     if (instance == null)
     {
         instance = new CacheStrategy <TValue>(maxSize);
     }
     return(instance);
 }
Exemple #2
0
 public TrackValue(CacheStrategy <TValue> lv, TValue tv)
 {
     Age   = Interlocked.Increment(ref lv.currentAge);
     Value = tv;
 }