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

Add moka::dash::Cache, which uses dash::DashMap as the internal storage #99

Merged
merged 4 commits into from
Mar 20, 2022

Conversation

tatsuya6502
Copy link
Member

Add an optional cache implementation moka::dash::Cache, which uses the dashmap::DashMap as the internal storage. The moka::dash::Cache provides similar (but less) APIs to moka::sync::Cache.

To use this optional cache, add "dash" feature for the moka dependency in Cargo.toml.


Fixes #92

@tatsuya6502 tatsuya6502 added the enhancement New feature or request label Mar 19, 2022
@tatsuya6502 tatsuya6502 self-assigned this Mar 19, 2022
@tatsuya6502 tatsuya6502 added this to the v0.8.0 milestone Mar 19, 2022
Copy link
Member Author

@tatsuya6502 tatsuya6502 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will remove an extra line in a doc comment.

src/future/cache.rs Outdated Show resolved Hide resolved
@tatsuya6502 tatsuya6502 merged commit 859ab4f into master Mar 20, 2022
@tatsuya6502 tatsuya6502 deleted the dashmap branch March 20, 2022 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optional feature flag to use a DashMap as opposed to a HashMap
1 participant