Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support weight-based eviction #24

Merged
merged 45 commits into from
Dec 31, 2021
Merged
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
cf00496
Update the CI to run cargo test in debug mode
tatsuya6502 Aug 9, 2021
76bb8a4
Support weight-based (cost-based) eviction and unbound cache
tatsuya6502 Aug 9, 2021
35a789e
Fix the CI on MSRV 1.45.2
tatsuya6502 Aug 9, 2021
aa583ad
Temporary disable the CI for MSRV 1.45.2
tatsuya6502 Aug 15, 2021
2082338
Remove unnecessary hash calculation from an internal method:
tatsuya6502 Aug 15, 2021
6a5444e
Add some source code comments
tatsuya6502 Aug 15, 2021
2835b94
Support weight-based (cost-based) eviction and unbound cache
tatsuya6502 Aug 15, 2021
427e67f
Support cost-based eviction
tatsuya6502 Aug 15, 2021
9d0e702
Size-aware cache management
tatsuya6502 Aug 15, 2021
a6a2c0d
Size-aware cache management
tatsuya6502 Aug 15, 2021
e261968
Minor refactoring
tatsuya6502 Aug 15, 2021
7e75972
Fix typos in source code comments
tatsuya6502 Aug 15, 2021
dd35403
Size-aware cache management
tatsuya6502 Aug 15, 2021
45ee2a9
Size-aware cache management
tatsuya6502 Aug 16, 2021
f133967
Size-aware cache management
tatsuya6502 Aug 16, 2021
8fec64c
Size-aware cache management
tatsuya6502 Aug 16, 2021
c24ce64
Rename an internal type
tatsuya6502 Aug 25, 2021
7e01c98
Update the change log
tatsuya6502 Aug 25, 2021
6dba09b
Fix typos (weigher)
tatsuya6502 Aug 25, 2021
5de5924
Size-aware cache management
tatsuya6502 Aug 25, 2021
c1d6fbd
Add cargo clean step to the CI to avoid Skeptic to fail
tatsuya6502 Aug 25, 2021
b93ad50
Cosmetic changes in the README
tatsuya6502 Aug 25, 2021
2c7ca64
Size-aware cache management
tatsuya6502 Dec 18, 2021
4c2ac94
Temporary disable Clippy on Rust 1.58 beta on CI
tatsuya6502 Dec 12, 2021
bd41c6d
Merge branch 'master' into weight-based-eviction
tatsuya6502 Dec 18, 2021
4404e6f
Size-aware cache management
tatsuya6502 Dec 18, 2021
ed804d7
Merge branch 'master' into weight-based-eviction
tatsuya6502 Dec 25, 2021
af92346
Size-aware cache management
tatsuya6502 Dec 25, 2021
261e1ae
Size-aware cache management
tatsuya6502 Dec 25, 2021
841da56
Size-aware cache management
tatsuya6502 Dec 25, 2021
4481394
Size-aware cache management
tatsuya6502 Dec 25, 2021
a8da880
Size-aware cache management
tatsuya6502 Dec 25, 2021
684f9b6
Size-aware cache management
tatsuya6502 Dec 26, 2021
61fcc5f
Size-aware cache management
tatsuya6502 Dec 26, 2021
e0b771d
Size-aware cache management
tatsuya6502 Dec 26, 2021
b5c53d7
Merge branch 'master' into weight-based-eviction
tatsuya6502 Dec 29, 2021
23985d4
Size-aware cache management
tatsuya6502 Dec 29, 2021
9c8d50d
Size-aware cache management
tatsuya6502 Dec 30, 2021
887c5bf
Size-aware cache management
tatsuya6502 Dec 30, 2021
9bca183
Size-aware cache management
tatsuya6502 Dec 30, 2021
554e6ac
Size-aware cache management
tatsuya6502 Dec 31, 2021
56f860e
Update the CHANGELOG
tatsuya6502 Dec 31, 2021
97aec97
Bump the version to v0.7.0
tatsuya6502 Dec 31, 2021
18a3e71
Update the copyright year
tatsuya6502 Dec 31, 2021
b77f505
Size-aware cache management
tatsuya6502 Dec 31, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Cosmetic changes in the README
  • Loading branch information
tatsuya6502 committed Aug 25, 2021
commit b93ad50436a2382b010c7be7a1730f19fdb63c28
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ Moka provides cache implementations that support full concurrency of retrievals
a high expected concurrency for updates. Moka also provides a not thread-safe cache
implementation for single thread applications.

All caches perform a best-effort bounding of a hash map using an entry
replacement algorithm to determine which entries to evict when the capacity is
exceeded.
All caches perform a best-effort bounding of a hash map using an entry replacement
algorithm to determine which entries to evict when the capacity is exceeded.

[gh-actions-badge]: https://github.com/moka-rs/moka/workflows/CI/badge.svg
[release-badge]: https://img.shields.io/crates/v/moka.svg
Expand Down Expand Up @@ -75,7 +74,7 @@ moka = { version = "0.6", features = ["future"] }

## Example: Synchronous Cache

The thread-safe, blocking caches are defined in the `sync` module.
The thread-safe, synchronous caches are defined in the `sync` module.

Cache entries are manually added using `insert` method, and are stored in the cache
until either evicted or manually invalidated.
Expand Down