示例#1
0
 public void Bump(T obj)
 {
     // Check if the key exists in the used region first, then in the unused
     if (usedCache.Has(obj))
     {
         usedCache.Bump(obj);
     }
     else if (unusedCache.Has(obj))
     {
         // Move the entry from unused to used region
         usedCache.Add(unusedCache.Remove(obj));
     }
 }