public void invalidateDatabaseLastCache(final String database) {
    if (!CommonDescriptor.getInstance().getConfig().isLastCacheEnable()) {
      return;
    }
    tableDeviceSchemaCache.invalidateLastCache(database);
  }
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