iggy icon indicating copy to clipboard operation
iggy copied to clipboard

Refactor caching - implement trait `CachingStrategy`

Open hubcio opened this issue 1 year ago • 2 comments

Besides that, implement previous, unsafe ring-buffer caching style, add it to config.

hubcio avatar Sep 27 '23 11:09 hubcio

After some thoughts, we would like to have implemented:

  • old style, unsafe caching, with per-partition ringbuffer from ringbuffer crate
  • new style, safe(r) caching, with global atomic counter
  • adaptive caching (in future)

Aim of this task is to provide generic Trait so that implementing new cache strategies should be seamless.

hubcio avatar Sep 29 '23 11:09 hubcio

Use https://crates.io/crates/stretto or https://crates.io/crates/moka

hubcio avatar Dec 02 '23 11:12 hubcio