9 Comments
User's avatar
Ashwani Yadav's avatar

hey, this github link is giving 404

https://github.com/pratikpandey21/distributedcache

Expand full comment
Pratik Pandey's avatar

Sorry, will fix it tonight. I think I didn't make the repo public, thats why its 404.

Expand full comment
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
Pratik Pandey's avatar

Nice, I'll check. I now realise people are really going into the eviction policies, which isn't something I was targeting. Maybe something I can focus on in a future article.

Expand full comment
Akiii's avatar

An article in eviction policies and when to use them would be great.

Expand full comment
Pratik Pandey's avatar

Cool. Will work on that!

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
Pratik Pandey's avatar

Great point. This was because I wanted to show the impact of eviction with the different cache variations. This implementation can definitely be optimized and is something that we will refine in the next weeks.

Expand full comment
Gustavo Pereira's avatar

Got it! Thanks for clarifying

Expand full comment