jellydator / ttlcache

An in-memory cache with item expiration and generics
MIT License
883 stars 115 forks source link

Cache Sharding support to increase performance #93

Open Planxnx opened 1 year ago

Planxnx commented 1 year ago

add cache shards will reduce r/w blocking by mutex. Example: https://github.com/orcaman/concurrent-map/blob/master/concurrent_map.go

sammy-hughes commented 2 weeks ago

Given the internalization of a mutex, this would seem to be a valuable feature. Is this feature being considered?

swithek commented 2 weeks ago

Yes, though there are no plans for its release yet.

sammy-hughes commented 2 weeks ago

Yep. The distance between "that's a good idea" and "all done!" can be quite the doozy. Thanks for confirming that this is somewhere in the roadmap.

Planxnx commented 1 week ago

I'm still waiting 👀