genId(type) {
    if (cache[type] === undefined) cache[type] = 1;
    return type + '_' + String(cache[type]++);
  }
Generate auto-increment id based on type
@param {string} type - type
@return {string} id xxxx_10
@public