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.
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 up1to2or raise an error to prevent this footgun.