- 授权协议: Apache
- 开发语言: Java
- 操作系统: 跨平台
- 软件首页: https://github.com/ben-manes/caffeine
- 软件文档: https://github.com/ben-manes/caffeine/blob/master/README.md
- 官方下载: https://github.com/ben-manes/caffeine/archive/master.zip
软件介绍
Caffeine 是基于Java 8的高性能,接近最佳的缓存库。
Caffeine使用Google Guava启发的API提供内存缓存。 改进取决于您设计Guava缓存和ConcurrentLinkedHashMap的体验。
LoadingCache<Key, Graph> graphs = Caffeine.newBuilder() .maximumSize(10_000) .expireAfterWrite(5, TimeUnit.MINUTES) .refreshAfterWrite(1, TimeUnit.MINUTES) .build(key -> createExpensiveGraph(key));
