Giter VIP home page Giter VIP logo

caffeinechinesewiki's Introduction

本仓库与caffeine的官方中文wiki是同一个译者,限于译者水平翻译难免有疏漏不妥之处,可以直接提issue指出,欢迎添加译者vx号tydhot一起探讨技术

Caffeine是一个基于Java8开发的提供了近乎最佳命中率的高性能的缓存库。

缓存和ConcurrentMap有点相似,但还是有所区别。最根本的区别是ConcurrentMap将会持有所有加入到缓存当中的元素,直到它们被从缓存当中手动移除。但是,Caffeine的缓存Cache 通常会被配置成自动驱逐缓存中元素,以限制其内存占用。在某些场景下,LoadingCacheAsyncLoadingCache 因为其自动加载缓存的能力将会变得非常实用。

Caffeine提供了灵活的构造器去创建一个拥有下列特性的缓存:

为了提高集成度,扩展模块提供了JSR-107 JCacheGuava适配器。JSR-107规范了基于Java 6的API,在牺牲了功能和性能的代价下使代码更加规范。Guava的Cache是Caffeine的原型库并且Caffeine提供了适配器以供简单的迁移策略。

我们很欢迎你的贡献。请阅读设计部分,贡献指南开发路线图

caffeinechinesewiki's People

Contributors

tydhot avatar

Stargazers

 avatar

Watchers

 avatar  avatar

caffeinechinesewiki's Issues

Caffeine 3.0 updates

Hi @tydhot,

Caffeine 3.0 has finally landed! There were some minor updates to the wiki to correspond to that. It might be easiest to look at the git history, but I'll try to summarize them. I'd appreciate it if you could please update the translation.

  • Home: Switched link from Writer to Compute
  • Compute: Added (based on Writer)
  • Removal: Updated from CacheWriter to Caffeine.evictionListener; updated from j.u.l. to Platform Logger
  • Refresh: Updated from j.u.l. to Platform Logger
  • Statistics: Updated to official Dropwizard adapter
  • Specification: Removed "in 2.8.7"
  • Policy: Update Time-based
  • Writer: removed wiki page
  • Roadmap: Rewrote
  • Contribute: Removed outdated Eclipse plugins

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.