caches-rs

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

Downloads
61.5K
Stars
104
Committers
5

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.2" 
    
  • no_std
    [dependencies]
    caches = { version: "0.2", default-features = false }
    

Usages

Please see examples.

Acknowledgments

Roadmap

  • 0.2: Support TinyLFU, SampledLFU, WTinyLFUCache
  • 0.3: Support LIRS, DLIRS, DSLRU
  • 0.4: Add ttl feature to support

License