8000 GitHub - easyops-cn/caches-rs: This is a Rust implementation for popular caches (support no_std).
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

easyops-cn/caches-rs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Caches

github Build codecov

docs.rs crates.io license-apache license-mit

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.0" 
  • no_std
    [dependencies]
    caches = {version: "0.2.0", features: ["core"]}

Usages

Please see examples.

Roadmap

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

Acknowledgments

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%
0