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

#105 in Caching

Download history 522/week @ 2024-07-20 490/week @ 2024-07-27 222/week @ 2024-08-03 325/week @ 2024-08-10 431/week @ 2024-08-17 547/week @ 2024-08-24 313/week @ 2024-08-31 591/week @ 2024-09-07 818/week @ 2024-09-14 498/week @ 2024-09-21 598/week @ 2024-09-28 456/week @ 2024-10-05 113/week @ 2024-10-12 307/week @ 2024-10-19 320/week @ 2024-10-26 185/week @ 2024-11-02

955 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

~120KB