百科.dev
全部条目趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

caffeine

> 编程语言
开源

用于 Java 的高性能缓存库

17.8K stars0 点赞1 次浏览
访问官网GitHub

工具介绍

用于 Java 的高性能缓存库

<a href="https://GitHub.com/ben-manes/caffeine/wiki" </a Cafeine是一个[高性能][基准分],[接近最佳 [效率]缓存库. 详情见我们的[用户指南][用户指南],浏览最新版的[API docs][javadoc]。 Cache Cafeine提供了使用谷歌Guava启发的API的内膜缓存. 这些改进借鉴了我们设计[Guava的缓存][guava-cache]和[ConcentLinkedHashMap][clhm]的经验. Java LoadingCache <Key, Graph graphs = Cafeine. newBuilder (). maximSize (1000). expire before Write (Direction.of Minutes (5)). refresh AfterWrite (Direction.of Minutes (1)). Build (key -创建ExpensiveGraph (key)); Glance Cafeine的地物为创建缓存提供了灵活的构造,结合了以下可选特性: [自动地将条目 [人口]输入缓存,可选同步[大小的驱 [

核心特点

  • •[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
  • •[writes propagated][compute] to an external resource
  • •accumulation of cache access [statistics][statistics]
  • •[JSR-107 JCache][jsr107]

> 标签

Java

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月9日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言