code: func PeriodicallyInvalidate(cache AvailableAPIsGetter, interval time.Duration, stopCh <-chan struct{}) {
  	ticker := time.NewTicker(interval)
  	defer ticker.Stop()
  
  	for {
  		select {
  		case <-ticker.C:
  			cache.Invalidate()
  		case <-stopCh:
  			break
  		}
  	}
  }
docs: // PeriodicallyInvalidate periodically invalidates the preferred version cache until
  // told to stop.