@Override
          public void put(final IDeviceID device, final String databaseName) {
            map.computeIfAbsent(databaseName, k -> new ArrayList<>()).add(device);
          }
get database to device map

@param deviceIDs the devices that need to hit
@param tryToFetch whether try to get all database from config node
@param isAutoCreate whether auto create database when cache miss
@param userName the userName
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/cache/partition/PartitionCache.java