caches 0.3.0

This is a Rust implementation for popular caches (support no_std).
Documentation

This is a Rust implementation for popular caches (support no_std).

See Introduction, Installation and Usages for more details.

English | 简体中文

Introduction

The MSRV for this crate is 1.55.0.

  • LRU
    • LRUCache, SegmentedCache, TwoQueueCache and AdaptiveCache.
  • LFU
    • TinyLFU, SampledLFU, and WTinyLFUCache

Installation

  • std

    [dependencies]
    caches = "0.3" 
    
  • no_std

    [dependencies]
    caches = { version = "0.3", default-features = false, features = ["libm", "hashbrown"] }
    

Usages

Please see examples.

Related

If you want a high-performance thread-safe modern cache, please see https://crates.io/crates/stretto

Acknowledgments

License