public void put(final ClusterSchemaTree tree) {
    tree.getAllDevices()
        .forEach(
            deviceSchemaInfo ->
                tableDeviceSchemaCache.putDeviceSchema(
                    tree.getBelongedDatabase(deviceSchemaInfo.getDevicePath()), deviceSchemaInfo));
  }
Store the fetched schema in either the {@link TreeDeviceNormalSchema} or {@link
TreeDeviceTemplateSchema}, depending on its associated device.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/fetcher/cache/TreeDeviceSchemaCacheManager.java