Brunet.Services.Dht.TableServerData.CheckEntries C# (CSharp) Метод

CheckEntries() публичный Метод

Deletes any of the expired entries by traversing the entire data store. This is done only once every 24 hours to reduce heavy memory access due to short lived unused entries.
public CheckEntries ( ) : void
Результат void
    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;
      }
    }