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

Check for presence of key #107

Closed
razaqq opened this issue Mar 31, 2022 · 3 comments · Fixed by #110
Closed

Check for presence of key #107

razaqq opened this issue Mar 31, 2022 · 3 comments · Fixed by #110
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@razaqq
Copy link

razaqq commented Mar 31, 2022

Would it be possible to add a function to check if a key is present without resetting the idle timer?
Pretty much exactly like
https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.contains_key

@tatsuya6502 tatsuya6502 added the enhancement New feature or request label Apr 2, 2022
@tatsuya6502 tatsuya6502 self-assigned this Apr 2, 2022
@tatsuya6502 tatsuya6502 added this to the v0.8.1 milestone Apr 2, 2022
@tatsuya6502
Copy link
Member

tatsuya6502 commented Apr 3, 2022

Thanks for posting your request. This will be a nice addition to the cache. I am working on it via #110.

@tatsuya6502
Copy link
Member

I just published Moka v0.8.1 to crates.io. It has contains_key method in all cache flavors.

@razaqq
Copy link
Author

razaqq commented Apr 4, 2022

very nice, thanks alot!

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 a pull request may close this issue.

2 participants