foyer-rs / foyer

Hybrid in-memory and disk cache in Rust
https://foyer.rs
Apache License 2.0
291 stars 20 forks source link

feat: scale shards to 1 when there is not enough capacity #765

Closed MrCroxx closed 2 weeks ago

MrCroxx commented 2 weeks ago

What's changed and what's your intention?

Please explain IN DETAIL what the changes are in this PR and why they are needed. :D

As title.

Checklist

Related issues or PRs (optional)

close #764

codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 81.81818% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
foyer-memory/src/cache.rs 77.77% 4 Missing :warning:
Files with missing lines Coverage Δ
foyer-memory/src/generic.rs 91.04% <100.00%> (+0.05%) :arrow_up:
foyer-memory/src/cache.rs 85.74% <77.77%> (-0.44%) :arrow_down: