public void CheckEntries() {
DateTime now = DateTime.UtcNow;
if(now - last_clean < TimeSpan.FromSeconds(TimeBetweenCleanup)) {
return;
}
// Otherwise its time to do some cleaning!
last_clean = now;
LinkedListNode<MemBlock> current = list_of_keys.First;
while(current != null) {
LinkedListNode<MemBlock> next = current.Next;
DeleteExpired(current.Value);
current = next;
}
}