Latest Results
fix: address PR review feedback — clone removal, doc clarifications, test improvements
- Remove redundant `.clone()` on `#[concurrent_cached]` cache-hit return
path for all three variants (with_cached_flag, Result<T,E>, plain T):
the value from cache_get is already owned, so cloning before returning
was wasted work on every cache hit
- Extend build() panic messages on ShardedLruCache, ShardedExpiringLruCache,
and ShardedLruTtlCache to include BuildError detail (previously only the
with_size_* convenience constructors had detailed panic messages)
- Correct FibHasher example doc: describes Fibonacci hashing, not upper-byte
partitioning
- Add no-op note to set_refresh_on_hit on ShardedLruCache, ShardedExpiringCache,
and ShardedExpiringLruCache (these stores have no refreshable TTL)
- Document that cache_set on expiring stores returns the raw stored value
without checking is_expired; add note to behavioral guarantees that sharded
stores do not implement CachedIter or CachedPeek
- Clarify copy_from LRU ordering: per-shard ordering is preserved but global
recency rank is not guaranteed after resharding
- Clarify ttl_nanos field comment: 0 is only reachable via unset_ttl(), not
at build time
- Add call-count assertion to plain_option_return_caches_none_and_some test
to verify None and Some values are actually cached
- Regenerate README from lib.rs Latest Branches
-43%
+14%
N/A
codspeed-wizard-1779471234220 © 2026 CodSpeed Technology