public void createRegionGroupHeartbeatCache(
      String database, TConsensusGroupId regionGroupId, Set<Integer> dataNodeIds) {
    boolean isStrongConsistency = CONF.isConsensusGroupStrongConsistency(regionGroupId);
    regionGroupCacheMap.put(
        regionGroupId,
        new RegionGroupCache(database, regionGroupId, dataNodeIds, isStrongConsistency));
    consensusGroupCacheMap.put(regionGroupId, new ConsensusGroupCache());
  }
Create a new RegionGroupCache and a new ConsensusGroupCache for the specified RegionGroup.

@param database the Database where the RegionGroup belonged
@param regionGroupId the index of the RegionGroup
@param dataNodeIds the index of the DataNodes where the Regions resided
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/load/cache/LoadCache.java