• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

ben-manes-caffeine: Caffeine 是基于Java 8的高性能,接近最佳的缓存库。 Caffeine使 ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

ben-manes-caffeine

开源软件地址:

https://gitee.com/mirrors/ben-manes-caffeine

开源软件介绍:

Build StatusCoverage StatusMaven CentralJavaDocLicenseStack Overflow

Caffeine is a high performance, near optimal caching library. For moredetails, see our user's guide and browse the API docs for the latestrelease.

Cache

Caffeine provides an in-memory cache using a Google Guava inspired API. The improvements draw on ourexperience designing Guava's cache and ConcurrentLinkedHashMap.

LoadingCache<Key, Graph> graphs = Caffeine.newBuilder()    .maximumSize(10_000)    .expireAfterWrite(Duration.ofMinutes(5))    .refreshAfterWrite(Duration.ofMinutes(1))    .build(key -> createExpensiveGraph(key));

Features at a Glance

Caffeine provides flexible construction to create a cache with a combination of the following features:

In addition, Caffeine offers the following extensions:

Use Caffeine in a community provided integration:

Powering infrastructure near you:

  • Dropwizard: Ops-friendly, high-performance, RESTful APIs
  • Cassandra: Manage massive amounts of data, fast
  • Accumulo: A sorted, distributed key/value store
  • HBase: A distributed, scalable, big data store
  • Apache Solr: Blazingly fast enterprise search
  • Infinispan: Distributed in-memory data grid
  • Redisson: Ultra-fast in-memory data grid
  • OpenWhisk: Serverless cloud platform
  • Corfu: A cluster consistency platform
  • Grails: Groovy-based web framework
  • Finagle: Extensible RPC system
  • Neo4j: Graphs for Everyone
  • Druid: Real-time analytics

In the News

Download

Download from Maven Central or depend via Gradle:

implementation 'com.github.ben-manes.caffeine:caffeine:3.0.6'// Optional extensionsimplementation 'com.github.ben-manes.caffeine:guava:3.0.6'implementation 'com.github.ben-manes.caffeine:jcache:3.0.6'

For Java 11 or above, use 3.0.x otherwise use 2.9.x.

See the release notes for details of the changes.

Snapshots of the development version are available inSonatype's snapshots repository.


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap