Skip to content
/ foyer Public
forked from MrCroxx/foyer

Hybrid memory and disk cache in Rust

License

Notifications You must be signed in to change notification settings

Xuanwo/foyer

 
 

Repository files navigation

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 & Roadmap

Currently, foyer is still under heavy development.

The development state and the roadmap can be found here.

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.

Contributing

Contributions for foyer are welcomed!

Issues can be found here.

The development state and the roadmap can be found here.

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

About

Hybrid memory and disk cache in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Rust 99.5%
  • Other 0.5%