doAutoPurge method

bool doAutoPurge()

Same as purge, but called automatically by many operations. See autoPurge and autoPurgeThreshold.

Implementation

bool doAutoPurge() {
  if (!autoPurge) return false;
  if (_unpurgedCount < autoPurgeThreshold) {
    ++_unpurgedCount;
    return false;
  }
  purge();
  return true;
}