Code Monkey home page Code Monkey logo

foyer's Introduction

foyer

Crates.io Version Crates.io MSRV GitHub License

CI (main) License Checker codecov

foyer aims to be a user-friendly hybrid cache lib in Rust.

foyer is inspired by Facebook/CacheLib, which is an excellent hybrid cache lib in C++. foyer is not only a 'rewrite in Rust project', but provide some features that CacheLib doesn't have for now.

Supported Rust Versions

foyer is built against the latest stable release. The minimum supported version is 1.77.2. The current foyer version is not guaranteed to build on Rust versions earlier than the minimum supported version.

Development state

Currently, foyer only finished few features, and is still under heavy development.

Features

  • in-memory cache
    • FIFO
    • LRU with priority pool
    • 3-qeue w-TinyLFU (imspired by caffeine)
    • S3FIFO without Ghost Queue
  • disk cache
  • TTL (time to live)

Examples

The examples can be found here.

Roadmap

  • More user-friendly API.
  • User-friendly Documents and examples.
  • Support TTL.
  • Simplify foyer-storage.
  • Refactor foyer-storage region reclaiming policy.
  • Support on Windows.
  • Unify in-memory cache and disk cache configuration.

Contributing

Contributions for foyer are welcomed! Issues can be found here.

Make sure you've passed make check and make test before request a review, or CI will fail.

foyer's People

Contributors

mrcroxx avatar wenym1 avatar dependabot[bot] avatar xiaguan avatar ishiihara avatar tennyzhuang avatar xxchan 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.