Skip to content

v2.0.1

Choose a tag to compare

@jaemk jaemk released this 13 Jul 02:21
· 108 commits to master since this release
7ca2c04
  • Fix TtlSortedCacheBuilder: an explicit .capacity(n) is now honored even when .max_size(m) is also set. Previously the max_size-derived m + 1 preallocation ran first, and because HashMap::reserve never shrinks, a smaller .capacity(n) had no effect. The explicit capacity now takes precedence as the preallocation hint while max_size continues to bound entry count (#266).