Discussion about this post

User's avatar
Akiii's avatar

Nice benchmarking. Need to look at the code carefulky though.

I was building a similar concurrent application layer caching library in Go: https://github.com/Aki0x137/wind.

Looks like I should complete it after reading your article😅. I was originally inspired by a talk from a Dev at Reddit.

You might also want to look at decaying LFU caches. You can fine tune weights in it to decide how much it should behave like LFU and how much like LRU.

Expand full comment
Gustavo Pereira's avatar

Why do you need to copy the entire cache on eviction? Can’t you implement LRU using a doubly-linked list of keys?

Expand full comment
5 more comments...

No posts