[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-3973":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},3973,"caffeine","ben-manes\u002Fcaffeine","ben-manes","A high performance caching library for Java","",null,"Java",17703,1697,357,1,0,3,10,69,11,44.69,"Apache License 2.0",false,"master",true,[],"2026-06-12 02:00:56","[![Build Status](https:\u002F\u002Fgithub.com\u002Fben-manes\u002Fcaffeine\u002Factions\u002Fworkflows\u002Fbuild.yml\u002Fbadge.svg?branch=master)](https:\u002F\u002Fgithub.com\u002Fben-manes\u002Fcaffeine\u002Factions?query=workflow%3Abuild+branch%3Amaster)\n[![Test Count](https:\u002F\u002Fgist.githubusercontent.com\u002Fben-manes\u002Fc20eb418f0e0bd6dfe1c25beb35faae4\u002Fraw\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fben-manes\u002Fcaffeine\u002Factions?query=workflow%3Abuild+branch%3Amaster)\n[![Coverage Status](https:\u002F\u002Fimg.shields.io\u002Fcoveralls\u002Fben-manes\u002Fcaffeine.svg?color=31c653)](https:\u002F\u002Fcoveralls.io\u002Fr\u002Fben-manes\u002Fcaffeine?branch=master)\n[![Maven Central](https:\u002F\u002Fimg.shields.io\u002Fmaven-central\u002Fv\u002Fcom.github.ben-manes.caffeine\u002Fcaffeine?color=31c653&label=maven%20central)](https:\u002F\u002Fcentral.sonatype.com\u002Fartifact\u002Fcom.github.ben-manes.caffeine\u002Fcaffeine)\n[![JavaDoc](https:\u002F\u002Fwww.javadoc.io\u002Fbadge\u002Fcom.github.ben-manes.caffeine\u002Fcaffeine.svg?color=31c653)](https:\u002F\u002Fwww.javadoc.io\u002Fdoc\u002Fcom.github.ben-manes.caffeine\u002Fcaffeine)\n[![License](https:\u002F\u002Fimg.shields.io\u002F:license-apache-31c653.svg)](https:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-2.0.html)\n[![Revved up by Develocity](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FRevved%20up%20by-Develocity-06A0CE?logo=Gradle&labelColor=02303A)](https:\u002F\u002Fcaffeine.develocity.cloud\u002Fscans)\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fben-manes\u002Fcaffeine\u002Fwiki\">\n\u003Cimg align=\"right\" height=\"90px\" src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fben-manes\u002Fcaffeine\u002Fmaster\u002Fwiki\u002Flogo.png\">\n\u003C\u002Fa>\n\nCaffeine is a [high performance][benchmarks], [near optimal][efficiency] caching library. For more\ndetails, see our [user's guide][users-guide] and browse the [API docs][javadoc] for the latest\nrelease.\n\n### Cache\n\nCaffeine provides an in-memory cache using a Google Guava inspired API. The improvements draw on our\nexperience designing [Guava's cache][guava-cache] and [ConcurrentLinkedHashMap][clhm].\n\n```java\nLoadingCache\u003CKey, Graph> graphs = Caffeine.newBuilder()\n    .maximumSize(10_000)\n    .expireAfterWrite(Duration.ofMinutes(5))\n    .refreshAfterWrite(Duration.ofMinutes(1))\n    .build(key -> createExpensiveGraph(key));\n```\n\n#### Features at a Glance\n\nCaffeine provides flexible construction to create a cache with a combination of the following\noptional features:\n\n* [automatic loading of entries][population] into the cache, optionally asynchronously\n* [size-based eviction][size] when a maximum is exceeded based on [frequency and recency][efficiency]\n* [time-based expiration][time] of entries, measured since last access or last write\n* [asynchronously refresh][refresh] when the first stale request for an entry occurs\n* keys automatically wrapped in [weak references][reference]\n* values automatically wrapped in [weak or soft references][reference]\n* [notification][listener] of evicted (or otherwise removed) entries\n* [writes propagated][compute] to an external resource\n* accumulation of cache access [statistics][statistics]\n\nIn addition, Caffeine offers the following extensions:\n\n* [JSR-107 JCache][jsr107]\n* [Guava adapters][guava-adapter]\n* [Simulation][simulator]\n\nUse Caffeine in a community provided integration:\n\n* [Spring Cache][spring]: Simple, modern, productive Java\n* [Play Framework][play]: High velocity web framework\n* [Micronaut][micronaut]: A modern, full-stack framework\n* [Coroutines][caffeine-coroutines]: Kotlin Coroutines extension\n* [Bootique][bootique]: A fast, simple Java platform\n* [Quarkus][quarkus]: Supersonic Subatomic Java\n* [Camel][camel]: Routing and mediation engine\n* [Scaffeine][scaffeine]: Scala wrapper for Caffeine\n* [JHipster][jhipster]: Generate, develop, deploy\n* [Aedile][aedile]: Kotlin wrapper for Caffeine\n\nPowering infrastructure near you:\n\n* [Dropwizard][dropwizard]: Ops-friendly, high-performance, RESTful APIs\n* [Cassandra][cassandra]: Manage massive amounts of data, fast\n* [Coherence][coherence]: Mission critical in-memory data grid\n* [Accumulo][accumulo]: A sorted, distributed key\u002Fvalue store\n* [Kafka][kafka]: A distributed event streaming platform\n* [HBase][hbase]: A distributed, scalable, big data store\n* [Apache Solr][solr]: Blazingly fast enterprise search\n* [Infinispan][infinispan]: Distributed in-memory data grid\n* [Redisson][redisson]: Ultra-fast in-memory data grid\n* [OpenWhisk][open-whisk]: Serverless cloud platform\n* [Corfu][corfu]: A cluster consistency platform\n* [Grails][grails]: Groovy-based web framework\n* [Finagle][finagle]: Extensible RPC system\n* [Neo4j][neo4j]: Graphs for Everyone\n* [Druid][druid]: Real-time analytics\n\n### In the News\n\n* An in-depth description of Caffeine's architecture.\n  * [Design of a Modern Cache: part #1][modern-cache-1], [part #2][modern-cache-2]\n    ([slides][modern-cache-slides]) at [HighScalability][]\n* Caffeine is presented as part of research papers evaluating its novel eviction policy.\n  * [TinyLFU: A Highly Efficient Cache Admission Policy][tinylfu]\n    by Gil Einziger, Roy Friedman, Ben Manes\n  * [Adaptive Software Cache Management][adaptive-tinylfu]\n    by Gil Einziger, Ohad Eytan, Roy Friedman, Ben Manes\n  * [Lightweight Robust Size Aware Cache Management][size-tinylfu]\n    by Gil Einziger, Ohad Eytan, Roy Friedman, Ben Manes\n\n### Download\n\nDownload from [Maven Central][maven] or depend via Gradle:\n\n```gradle\nimplementation(\"com.github.ben-manes.caffeine:caffeine:3.2.4\")\n\n\u002F\u002F Optional extensions\nimplementation(\"com.github.ben-manes.caffeine:guava:3.2.4\")\nimplementation(\"com.github.ben-manes.caffeine:jcache:3.2.4\")\n```\n\nFor Java 11 or above, use `3.x` otherwise use `2.x`.\n\nSee the [release notes][releases] for details of the changes.\n\nSnapshots of the development version are available in\n[Sonatype's snapshots repository][snapshots].\n\n[benchmarks]: https:\u002F\u002Fgithub.com\u002Fben-manes\u002Fcaffeine\u002Fwiki\u002FBenchmarks\n[users-guide]: https:\u002F\u002Fgithub.com\u002Fben-manes\u002Fcaffeine\u002Fwiki\n[javadoc]: https:\u002F\u002Fwww.javadoc.io\u002Fdoc\u002Fcom.github.ben-manes.caffeine\u002Fcaffeine\n[guava-cache]: https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fguava\u002Fwiki\u002FCachesExplained\n[clhm]: https:\u002F\u002Fgithub.com\u002Fben-manes\u002Fconcurrentlinkedhashmap\n[population]: https:\u002F\u002Fgithub.com\u002Fben-manes\u002Fcaffeine\u002Fwiki\u002FPopulation\n[size]: https:\u002F\u002Fgithub.com\u002Fben-manes\u002Fcaffeine\u002Fwiki\u002FEviction#size-based\n[time]: https:\u002F\u002Fgithub.com\u002Fben-manes\u002Fcaffeine\u002Fwiki\u002FEviction#time-based\n[refresh]: https:\u002F\u002Fgithub.com\u002Fben-manes\u002Fcaffeine\u002Fwiki\u002FRefresh\n[reference]: https:\u002F\u002Fgithub.com\u002Fben-manes\u002Fcaffeine\u002Fwiki\u002FEviction#reference-based\n[listener]: https:\u002F\u002Fgithub.com\u002Fben-manes\u002Fcaffeine\u002Fwiki\u002FRemoval\n[compute]: https:\u002F\u002Fgithub.com\u002Fben-manes\u002Fcaffeine\u002Fwiki\u002FCompute\n[statistics]: https:\u002F\u002Fgithub.com\u002Fben-manes\u002Fcaffeine\u002Fwiki\u002FStatistics\n[simulator]: https:\u002F\u002Fgithub.com\u002Fben-manes\u002Fcaffeine\u002Fwiki\u002FSimulator\n[guava-adapter]: https:\u002F\u002Fgithub.com\u002Fben-manes\u002Fcaffeine\u002Fwiki\u002FGuava\n[jsr107]: https:\u002F\u002Fgithub.com\u002Fben-manes\u002Fcaffeine\u002Fwiki\u002FJCache\n[maven]: https:\u002F\u002Fcentral.sonatype.com\u002Fartifact\u002Fcom.github.ben-manes.caffeine\u002Fcaffeine\n[releases]: https:\u002F\u002Fgithub.com\u002Fben-manes\u002Fcaffeine\u002Freleases\n[snapshots]: https:\u002F\u002Fcentral.sonatype.org\u002Fpublish\u002Fpublish-portal-snapshots\u002F#consuming-snapshot-releases-for-your-project\n[efficiency]: https:\u002F\u002Fgithub.com\u002Fben-manes\u002Fcaffeine\u002Fwiki\u002FEfficiency\n[tinylfu]: https:\u002F\u002Fdl.acm.org\u002Fdoi\u002F10.1145\u002F3149371?cid=99659224047\n[adaptive-tinylfu]: https:\u002F\u002Fdl.acm.org\u002Fdoi\u002F10.1145\u002F3274808.3274816?cid=99659224047\n[size-tinylfu]: https:\u002F\u002Fdl.acm.org\u002Fdoi\u002F10.1145\u002F3507920?cid=99659224047\n[modern-cache-1]: https:\u002F\u002Fhighscalability.com\u002Fblog\u002F2016\u002F1\u002F25\u002Fdesign-of-a-modern-cache.html\n[modern-cache-2]: https:\u002F\u002Fhighscalability.com\u002Fblog\u002F2019\u002F2\u002F25\u002Fdesign-of-a-modern-cachepart-deux.html\n[modern-cache-slides]: https:\u002F\u002Fdocs.google.com\u002Fpresentation\u002Fd\u002F1NlDxyXsUG1qlVHMl4vsUUBQfAJ2c2NsFPNPr2qymIBs\n[HighScalability]: https:\u002F\u002Fhighscalability.com\n[spring]: https:\u002F\u002Fdocs.spring.io\u002Fspring-framework\u002Freference\u002Fintegration\u002Fcache\u002Fstore-configuration.html#cache-store-configuration-caffeine\n[scaffeine]: https:\u002F\u002Fgithub.com\u002Fblemale\u002Fscaffeine\n[kafka]: https:\u002F\u002Fkafka.apache.org\n[hbase]: https:\u002F\u002Fhbase.apache.org\n[cassandra]: https:\u002F\u002Fcassandra.apache.org\n[solr]: https:\u002F\u002Fsolr.apache.org\u002F\n[infinispan]: https:\u002F\u002Finfinispan.org\n[neo4j]: https:\u002F\u002Fgithub.com\u002Fneo4j\u002Fneo4j\n[finagle]: https:\u002F\u002Fgithub.com\u002Ftwitter\u002Ffinagle\n[druid]: https:\u002F\u002Fdruid.apache.org\u002Fdocs\u002Flatest\u002Fconfiguration\u002Findex.html#cache-configuration\n[jhipster]: https:\u002F\u002Fwww.jhipster.tech\u002F\n[open-whisk]: https:\u002F\u002Fopenwhisk.apache.org\u002F\n[camel]: https:\u002F\u002Fgithub.com\u002Fapache\u002Fcamel\u002Fblob\u002Fmaster\u002Fcomponents\u002Fcamel-caffeine\u002Fsrc\u002Fmain\u002Fdocs\u002Fcaffeine-cache-component.adoc\n[coherence]: https:\u002F\u002Fdocs.oracle.com\u002Fen\u002Fmiddleware\u002Fstandalone\u002Fcoherence\u002F14.1.1.2206\u002Fdevelop-applications\u002Fimplementing-storage-and-backing-maps.html#GUID-260228C2-371A-4B91-9024-8D6514DD4B78\n[corfu]: https:\u002F\u002Fgithub.com\u002FCorfuDB\u002FCorfuDB\n[micronaut]: https:\u002F\u002Fdocs.micronaut.io\u002Flatest\u002Fguide\u002Findex.html#caching\n[play]: https:\u002F\u002Fwww.playframework.com\u002Fdocumentation\u002Flatest\u002FJavaCache\n[redisson]: https:\u002F\u002Fgithub.com\u002Fredisson\u002Fredisson\n[accumulo]: https:\u002F\u002Faccumulo.apache.org\n[dropwizard]: https:\u002F\u002Fwww.dropwizard.io\n[grails]: https:\u002F\u002Fgrails.org\n[quarkus]: https:\u002F\u002Fquarkus.io\n[aedile]: https:\u002F\u002Fgithub.com\u002Fsksamuel\u002Faedile\n[bootique]: https:\u002F\u002Fbootique.io\u002F\n[caffeine-coroutines]: https:\u002F\u002Fgithub.com\u002Fbe-hase\u002Fcaffeine-coroutines\n","Caffeine 是一个高性能的 Java 缓存库。它提供了一系列核心功能，包括自动加载、基于大小和时间的过期策略、异步刷新等，并支持使用弱引用或软引用包装键值对以优化内存使用。此外，Caffeine 还具备丰富的扩展能力，如JSR-107 JCache兼容性、Guava适配器以及缓存行为模拟工具。该库适用于需要高效内存缓存的各种Java应用场合，尤其是在数据访问频繁且对性能有较高要求的场景下表现尤为出色。",2,"2026-06-11 02:57:32","top_language"]