diff --git a/README.md b/README.md index 9844457851..d5b3cfb92a 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ Caffeine provides flexible construction to create a cache with a combination of * [automatic loading of entries][population] into the cache, optionally asynchronously * [size-based eviction][size] when a maximum is exceeded based on [frequency and recency][efficiency] * [time-based expiration][time] of entries, measured since last access or last write + * [asynchronously refresh][refresh] when the first stale request for an entry occurs * keys automatically wrapped in [weak references][reference] * values automatically wrapped in [weak or soft references][reference] * [notification][listener] of evicted (or otherwise removed) entries @@ -75,6 +76,7 @@ Snapshots of the development version are available in [population]: https://github.com/ben-manes/caffeine/wiki/Population [size]: https://github.com/ben-manes/caffeine/wiki/Eviction#size-based [time]: https://github.com/ben-manes/caffeine/wiki/Eviction#time-based +[refresh]: https://github.com/ben-manes/caffeine/wiki/Refresh [reference]: https://github.com/ben-manes/caffeine/wiki/Eviction#reference-based [listener]: https://github.com/ben-manes/caffeine/wiki/Removal [writer]: https://github.com/ben-manes/caffeine/wiki/Writer diff --git a/build.gradle b/build.gradle index 275c03ac3a..6a8eb960fa 100644 --- a/build.gradle +++ b/build.gradle @@ -48,8 +48,8 @@ subprojects { group = 'com.github.ben-manes.caffeine' version.with { major = 2 // incompatible API changes - minor = 0 // backwards-compatible additions - patch = 4 // backwards-compatible bug fixes + minor = 1 // backwards-compatible additions + patch = 0 // backwards-compatible bug fixes releaseBuild = rootProject.hasProperty('release') } archivesBaseName = path[1..-1].replaceAll(':', '-').toLowerCase() diff --git a/caffeine/src/main/java/com/github/benmanes/caffeine/base/UnsafeAccess.java b/caffeine/src/main/java/com/github/benmanes/caffeine/base/UnsafeAccess.java index e03e5571d7..c2ab6e3e19 100644 --- a/caffeine/src/main/java/com/github/benmanes/caffeine/base/UnsafeAccess.java +++ b/caffeine/src/main/java/com/github/benmanes/caffeine/base/UnsafeAccess.java @@ -24,6 +24,8 @@ /** * Static access to {@link Unsafe} and convenient utility methods for performing low-level, unsafe * operations. + *

+ * Warning: This class is scheduled for removal in version 3.0.0. * * @author ben.manes@gmail.com (Ben Manes) */ diff --git a/caffeine/src/main/java/com/github/benmanes/caffeine/cache/Caffeine.java b/caffeine/src/main/java/com/github/benmanes/caffeine/cache/Caffeine.java index 68d181fa87..5dd9ded1a5 100644 --- a/caffeine/src/main/java/com/github/benmanes/caffeine/cache/Caffeine.java +++ b/caffeine/src/main/java/com/github/benmanes/caffeine/cache/Caffeine.java @@ -46,6 +46,7 @@ *

  • automatic loading of entries into the cache, optionally asynchronously *
  • size-based eviction when a maximum is exceeded based on frequency and recency *
  • time-based expiration of entries, measured since last access or last write + *
  • asynchronously refresh when the first stale request for an entry occurs *
  • keys automatically wrapped in {@linkplain WeakReference weak} references *
  • values automatically wrapped in {@linkplain WeakReference weak} or * {@linkplain SoftReference soft} references