Code Monkey home page Code Monkey logo

okcache's Introduction

OkCache

一个高性能二级缓存实现, 内存LRU缓存 + 磁盘文件持久化缓存。

  • 支持过期(Expiration)清除;
  • 支持LRU ~ 如果超过内存缓存容量,最近不常使用的项将被剔除(Eviction);
  • 支持剔除(Eviction)到二级可持久化缓存(BigCache);
  • 支持回写(Write Behind)到后端持久化存储,例如DB。
  • BigCache的Key常驻内存,Value可持久化。
  • BigCache支持纯磁盘文件,内存映射+磁盘文件,和堆外内存+磁盘文件三种模式。

注意

  1. 运行BigCache单元测试前,请将TestUtil.TEST_BASE_DIR修改为本地测试目录:
  2. 回写到MySQL的代码未开源,需要的自己实现BehindStorage接口即可。

okcache's People

Watchers

James Cloos avatar  avatar

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.