Skip to content

Commit b1f85c2

Browse files
committed
Release 2.0.0
1 parent 8ceaf81 commit b1f85c2

File tree

3 files changed

+11
-19
lines changed

3 files changed

+11
-19
lines changed

README.md

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![Build Status](https://travis-ci.org/ben-manes/caffeine.svg)](https://travis-ci.org/ben-manes/caffeine)
22
[![Coverage Status](https://img.shields.io/coveralls/ben-manes/caffeine.svg)](https://coveralls.io/r/ben-manes/caffeine?branch=master)
33
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.ben-manes.caffeine/caffeine/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.ben-manes.caffeine/caffeine)
4-
[![JavaDoc](https://img.shields.io/badge/javadoc-1.3.3-brightgreen.svg)](http://www.javadoc.io/doc/com.github.ben-manes.caffeine/caffeine)
4+
[![JavaDoc](https://img.shields.io/badge/javadoc-2.0.0-brightgreen.svg)](http://www.javadoc.io/doc/com.github.ben-manes.caffeine/caffeine)
55
[![License](http://img.shields.io/:license-apache-brightgreen.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)
66

77
Caffeine is a [high performance][benchmarks] caching library based on Java 8. For more
@@ -10,9 +10,8 @@ the latest release.
1010

1111
### Cache
1212

13-
Caffeine provides an in-memory cache using a Google Guava inspired API. The
14-
[improvements][benchmarks] draw on our experience designing [Guava's cache][guava-cache]
15-
and [ConcurrentLinkedHashMap][clhm].
13+
Caffeine provides an in-memory cache using a Google Guava inspired API. The [improvements][benchmarks]
14+
draw on our experience designing [Guava's cache][guava-cache] and [ConcurrentLinkedHashMap][clhm].
1615

1716
```java
1817
LoadingCache<Key, Graph> graphs = Caffeine.newBuilder()
@@ -27,7 +26,7 @@ LoadingCache<Key, Graph> graphs = Caffeine.newBuilder()
2726
Caffeine provide flexible construction to create a cache with a combination of the following features:
2827

2928
* [automatic loading of entries][population] into the cache, optionally asynchronously
30-
* [least-recently-used eviction][size] when a maximum size is exceeded
29+
* [size-based eviction][size] when a maximum is exceeded based on [frequency and recency][efficiency]
3130
* [time-based expiration][time] of entries, measured since last access or last write
3231
* keys automatically wrapped in [weak references][reference]
3332
* values automatically wrapped in [weak or soft references][reference]
@@ -40,23 +39,16 @@ In addition, Caffeine offers the following extensions:
4039
* [Guava adapters][guava-adapter]
4140
* [Simulation][simulator]
4241

43-
#### Coming Soon in 2.0
44-
45-
A new eviction policy, [Window TinyLfu][efficiency], substantially improves upon the classic _Least
46-
Recently Used_ policy. It provides a near optimal hit rate in O(1) time with a small footprint. The
47-
adoption of this policy will also enable the use of a fast path that can significantly increase the
48-
throughput.
49-
5042
### Download
5143

5244
Download from [Maven Central][maven] or depend via Gradle:
5345

5446
```gradle
55-
compile 'com.github.ben-manes.caffeine:caffeine:1.3.3'
47+
compile 'com.github.ben-manes.caffeine:caffeine:2.0.0'
5648
5749
// Optional extensions
58-
compile 'com.github.ben-manes.caffeine:guava:1.3.3'
59-
compile 'com.github.ben-manes.caffeine:jcache:1.3.3'
50+
compile 'com.github.ben-manes.caffeine:guava:2.0.0'
51+
compile 'com.github.ben-manes.caffeine:jcache:2.0.0'
6052
```
6153

6254
Snapshots of the development version are available in

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ subprojects { proj ->
5050

5151
group = 'com.github.ben-manes.caffeine'
5252
version.with {
53-
major = 1 // incompatible API changes
54-
minor = 3 // backwards-compatible additions
55-
patch = 4 // backwards-compatible bug fixes
53+
major = 2 // incompatible API changes
54+
minor = 0 // backwards-compatible additions
55+
patch = 0 // backwards-compatible bug fixes
5656
releaseBuild = rootProject.hasProperty('release')
5757
}
5858
archivesBaseName = path[1..-1].replaceAll(':', '-').toLowerCase()

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
* having a combination of the following features:
4444
* <ul>
4545
* <li>automatic loading of entries into the cache, optionally asynchronously
46-
* <li>eviction when a maximum size is exceeded based on frequency and recency
46+
* <li>size-based eviction when a maximum is exceeded based on frequency and recency
4747
* <li>time-based expiration of entries, measured since last access or last write
4848
* <li>keys automatically wrapped in {@linkplain WeakReference weak} references
4949
* <li>values automatically wrapped in {@linkplain WeakReference weak} or

0 commit comments

Comments
 (0)