Exemplo n.º 1
0
 /// <summary>
 /// Dequeues items from the garbage collection queue and removes them if they have expired. Otherwise, item is added back to garbage collection queue.
 /// This supplements the remove if expired logic which would never clean up items if they are no further adds to the set.
 /// </summary>
 /// <returns>The number removed items.</returns>
 public int CleanStaleItems(int dequeueCount)
 {
     return(_map.CleanStaleItems(dequeueCount));
 }