code: function writeIfPossible(stream) {
      if (
        // we don't have a count or a time set,
        (!settings.count && !settings.time) ||
        // the count has been met
        (settings.count && cache.length === settings.count)
      ) {
        flushCache(stream);
  
        return;
      }
  
      if (settings.time && !timeout) {
        flushCacheTimed(stream, _.noop);
      }
    }
docs: @private
  @description
  Flushes the cache if it is appropriate to do so.
  
  @param {Stream} stream - The stream to write to.
  @returns {undefined}