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