public void invalidateAttributes(final String database, final IDeviceID deviceId) {
    dualKeyCache.update(
        new TableId(database, deviceId.getTableName()),
        deviceId,
        null,
        entry -> -entry.invalidateAttribute(),
        false);
  }
Invalidate the attribute cache of one device. The "deviceId" shall equal to {@code null} when
invalidate the cache of the whole table.

@param database the device's database, without "root"
@param deviceId {@link IDeviceID}
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/fetcher/cache/TableDeviceSchemaCache.java