in mode/cluster/repository/nacos/src/main/java/org/apache/shardingsphere/mode/repository/cluster/nacos/NacosRepository.java [110:120]
public void persistEphemeral(final String key, final String value) {
try {
Preconditions.checkNotNull(value, "Value can not be null");
if (!findExistedInstance(key, true).isEmpty()) {
delete(key);
}
put(key, value, true);
} catch (final NacosException ex) {
throw new ClusterRepositoryPersistException(ex);
}
}