al8n / stretto

Stretto is a Rust implementation for Dgraph's ristretto (https://github.com/dgraph-io/ristretto). A high performance memory-bound Rust cache.
Apache License 2.0
413 stars 28 forks source link

fix: add get_buf to caclulate admit freq #39

Closed Millione closed 1 year ago

Millione commented 1 year ago

A naive implementation for ringbuffer stuff #37

Millione commented 1 year ago

Note that, the code cannot pass the latest nightly rustc version before this pr, and I found nightly-2023-03-21 can pass.

al8n commented 1 year ago

Note that, the code cannot pass the latest nightly rustc version before this pr, and I found nightly-2023-03-21 can pass.

Hi, I just pushed a commit to fix the related bugs, please pull the changes and let us merge this PR.