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
77Caffeine 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
1817LoadingCache<Key , Graph > graphs = Caffeine . newBuilder()
@@ -27,7 +26,7 @@ LoadingCache<Key, Graph> graphs = Caffeine.newBuilder()
2726Caffeine 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
5244Download 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
6254Snapshots of the development version are available in
0 commit comments