Skip to content

Commit 2ce49a4

Browse files
committed
Improved Javadoc for Cache#invalidate(key) (fixes #284)
1 parent 6c72ccd commit 2ce49a4

File tree

1 file changed

+3
-3
lines changed
  • caffeine/src/main/java/com/github/benmanes/caffeine/cache

1 file changed

+3
-3
lines changed

caffeine/src/main/java/com/github/benmanes/caffeine/cache/Cache.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ default Map<K, V> getAll(@NonNull Iterable<? extends @NonNull K> keys,
153153

154154
/**
155155
* Discards any cached value for the {@code key}. The behavior of this operation is undefined for
156-
* an entry that is being loaded and is otherwise not present.
156+
* an entry that is being loaded (or reloaded) and is otherwise not present.
157157
*
158158
* @param key the key whose mapping is to be removed from the cache
159159
* @throws NullPointerException if the specified key is null
@@ -162,7 +162,7 @@ default Map<K, V> getAll(@NonNull Iterable<? extends @NonNull K> keys,
162162

163163
/**
164164
* Discards any cached values for the {@code keys}. The behavior of this operation is undefined
165-
* for an entry that is being loaded and is otherwise not present.
165+
* for an entry that is being loaded (or reloaded) and is otherwise not present.
166166
*
167167
* @param keys the keys whose associated values are to be removed
168168
* @throws NullPointerException if the specified collection is null or contains a null element
@@ -171,7 +171,7 @@ default Map<K, V> getAll(@NonNull Iterable<? extends @NonNull K> keys,
171171

172172
/**
173173
* Discards all entries in the cache. The behavior of this operation is undefined for an entry
174-
* that is being loaded and is otherwise not present.
174+
* that is being loaded (or reloaded) and is otherwise not present.
175175
*/
176176
void invalidateAll();
177177

0 commit comments

Comments
 (0)