-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Iterating cache #112
Comments
Hi. Currently (v0.8.1), Let me spend a few days to explore some options to provide either Providing such a method in a concurrent collection will be much more complicated than in a not-thread-safe collection (e.g. I will get back to you when I decide what to do. |
Hi @tatsuya6502 , Thanks for looking into it. |
I believe I found a good solution for providing iterators. Although it has some disadvantages (below), I hope it will be good enough for many use cases: Disadvantages:
Advantages:
I found implementing such an iterator requires about the same amount of work to implement |
@tatsuya6502 , Thanks for looking into it... |
Yes. The So you can either do this ( Line 1455 in 52c9f55
or this ( Lines 1491 to 1495 in 52c9f55
|
Sweet... |
@JRAndreassen — I am going to merge #114 with the iterator supports. Then, I will do some pre-release testing and release v0.8.2 in a day or so. I will let you know when v0.8.2 is released. |
@tatsuya6502 .. |
Hi @JRAndreassen — OK. I have published Moka v0.8.2 to crates.io. Please let me know if you have any questions. |
@tatsuya6502 , Thanks for fixing it... |
Hi @tatsuya6502 ,
I'm using moka cache (moka::future)...
It is working well...
What is the best way of iterating through the elements in the list ?
I've looked through the code trying to find a way.
A "keys(&self) -> Vec" method would work..
Then I can iterate through the normal get...
Thanks...
JR
The text was updated successfully, but these errors were encountered: