You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Either support or error when items_capacity=1 #105
I have a silly workload where I really just wanted a cache size of 1. However this doesn't work since the shards end up having a capacity of 0. It turns out the smallest number that can work is 2. I think the library should either round up 1 to 2 or raise an error to prevent this footgun.
Activity
Fix snapshot node cache.
Fix snapshot node cache.
Fix cache with weight_capacity=1 silently storing nothing
Fix cache with weight_capacity=1 silently storing nothing (#106)
arthurprs commentedon Mar 11, 2026
Fixed in #106 I'll produce a new minor release with it shortly.
dcherian commentedon Mar 11, 2026
thank you!