Skip to content

Commit

Permalink
Document ContentCache.invalidate blocking nature
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi committed Jun 14, 2024
1 parent 17cc59c commit c12502c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/src/main/java/org/apache/iceberg/io/ContentCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ public InputFile tryCache(InputFile input) {
return input;
}

/**
* Invalidate the cache entry for the given key.
*
* <p>Note: if there is ongoing load, this is a blocking operation, i.e. it will wait for the load
* to complete before invalidating the entry.
*/
public void invalidate(String key) {
cache.invalidate(key);
}
Expand Down

0 comments on commit c12502c

Please sign in to comment.