code: function flushCache(stream) {
      lastWrite = Date.now();
  
      if (timeout) {
        clearTimeout(timeout);
        timeout = null;
      }
  
      stream.push(cache.splice(0, settings.count || cache.length));
    }
docs: @private
  @description
  Writes all the collected data to the stream.
  
  @param {Stream} stream - The stream to write to.
  @returns {undefined}