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