in mode/cluster/repository/nacos/src/main/java/org/apache/shardingsphere/mode/repository/cluster/nacos/NacosRepository.java [123:131]
public boolean persistExclusiveEphemeral(final String key, final String value) {
try {
Preconditions.checkState(findExistedInstance(key, true).isEmpty(), "Key `%s` already exists", key);
put(key, value, true);
} catch (final NacosException ex) {
throw new ClusterRepositoryPersistException(ex);
}
return true;
}