13 releases

0.1.12 Sep 8, 2023
0.1.11 Mar 14, 2023
0.1.10 Jan 30, 2021
0.1.9 Dec 21, 2020
0.1.4 Sep 11, 2016

#55 in Caching

Download history 137/week @ 2023-11-20 401/week @ 2023-11-27 189/week @ 2023-12-04 223/week @ 2023-12-11 243/week @ 2023-12-18 187/week @ 2024-01-01 216/week @ 2024-01-08 309/week @ 2024-01-15 362/week @ 2024-01-22 238/week @ 2024-01-29 342/week @ 2024-02-05 219/week @ 2024-02-12 458/week @ 2024-02-19 565/week @ 2024-02-26 230/week @ 2024-03-04

1,487 downloads per month

MIT license

22KB
525 lines

dependency status

rust-clockpro-cache

CLOCK-Pro cache replacement algorithm for Rust

Based on a Python implementation by Sami Lehtinen and a Go implementation by Damian Gryski.

Original paper: CLOCK-Pro: An Effective Improvement of the CLOCK Replacement.


lib.rs:

This is an implementation of the CLOCK-Pro cache algorithm.

CLOCK-Pro keeps track of recently referenced and recently evicted cache entries, which allows it to avoid the evictions that weak access patterns such as scan and loop typically induce in LRU and CLOCK.

Dependencies

~125KB