Skip to content

Commit 16ddc49

Browse files
committed
Update version to 3.0.0
1 parent 28a456e commit 16ddc49

5 files changed

Lines changed: 14 additions & 7 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Caffeine provides flexible construction to create a cache with a combination of
3535
* keys automatically wrapped in [weak references][reference]
3636
* values automatically wrapped in [weak or soft references][reference]
3737
* [notification][listener] of evicted (or otherwise removed) entries
38-
* [writes propagated][writer] to an external resource
38+
* [writes propagated][compute] to an external resource
3939
* accumulation of cache access [statistics][statistics]
4040

4141
In addition, Caffeine offers the following extensions:
@@ -82,11 +82,11 @@ Powering infrastructure near you:
8282
Download from [Maven Central][maven] or depend via Gradle:
8383

8484
```gradle
85-
implementation 'com.github.ben-manes.caffeine:caffeine:2.9.0'
85+
implementation 'com.github.ben-manes.caffeine:caffeine:3.0.0'
8686
8787
// Optional extensions
88-
implementation 'com.github.ben-manes.caffeine:guava:2.9.0'
89-
implementation 'com.github.ben-manes.caffeine:jcache:2.9.0'
88+
implementation 'com.github.ben-manes.caffeine:guava:3.0.0'
89+
implementation 'com.github.ben-manes.caffeine:jcache:3.0.0'
9090
```
9191

9292
See the [release notes][releases] for details of the changes.
@@ -105,7 +105,7 @@ Snapshots of the development version are available in
105105
[refresh]: https://github.com/ben-manes/caffeine/wiki/Refresh
106106
[reference]: https://github.com/ben-manes/caffeine/wiki/Eviction#reference-based
107107
[listener]: https://github.com/ben-manes/caffeine/wiki/Removal
108-
[writer]: https://github.com/ben-manes/caffeine/wiki/Writer
108+
[compute]: https://github.com/ben-manes/caffeine/wiki/Compute
109109
[statistics]: https://github.com/ben-manes/caffeine/wiki/Statistics
110110
[simulator]: https://github.com/ben-manes/caffeine/wiki/Simulator
111111
[guava-adapter]: https://github.com/ben-manes/caffeine/wiki/Guava

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ allprojects {
3939

4040
group = 'com.github.ben-manes.caffeine'
4141
version.with {
42-
major = 2 // incompatible API changes
43-
minor = 9 // backwards-compatible additions
42+
major = 3 // incompatible API changes
43+
minor = 0 // backwards-compatible additions
4444
patch = 0 // backwards-compatible bug fixes
4545
releaseBuild = rootProject.hasProperty('release')
4646
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ default CompletableFuture<? extends V> asyncReload(
123123
* AsyncLoadingCache<Key, Graph> cache = Caffeine.newBuilder().buildAsync(loader);
124124
* }</pre>
125125
*
126+
* @param <K> the key type
127+
* @param <V> the value type
126128
* @param mappingFunction the function to asynchronously compute the values
127129
* @return an asynchronous cache loader that delegates to the supplied {@code mappingFunction}
128130
* @throws NullPointerException if the mappingFunction is null
@@ -145,6 +147,8 @@ static <K extends Object, V extends Object> AsyncCacheLoader<K, V> bulk(
145147
* AsyncLoadingCache<Key, Graph> cache = Caffeine.newBuilder().buildAsync(loader);
146148
* }</pre>
147149
*
150+
* @param <K> the key type
151+
* @param <V> the value type
148152
* @param mappingFunction the function to asynchronously compute the values
149153
* @return an asynchronous cache loader that delegates to the supplied {@code mappingFunction}
150154
* @throws NullPointerException if the mappingFunction is null

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,8 @@ default CompletableFuture<? extends V> asyncReload(
209209
* LoadingCache<Key, Graph> cache = Caffeine.newBuilder().build(loader);
210210
* }</pre>
211211
*
212+
* @param <K> the key type
213+
* @param <V> the value type
212214
* @param mappingFunction the function to compute the values
213215
* @return a cache loader that delegates to the supplied {@code mappingFunction}
214216
* @throws NullPointerException if the mappingFunction is null

caffeine/src/main/java/com/github/benmanes/caffeine/cache/stats/CacheStats.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ private CacheStats(@NonNegative long hitCount, @NonNegative long missCount,
9999
* @param totalLoadTime the total load time (success and failure)
100100
* @param evictionCount the number of entries evicted from the cache
101101
* @param evictionWeight the sum of weights of entries evicted from the cache
102+
* @return a {@code CacheStats} representing the specified statistics
102103
*/
103104
public static CacheStats of(@NonNegative long hitCount, @NonNegative long missCount,
104105
@NonNegative long loadSuccessCount, @NonNegative long loadFailureCount,

0 commit comments

Comments
 (0)