-
-
Notifications
You must be signed in to change notification settings - Fork 73
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 support for Immediate
notification delivery mode to future
cache
#228
Comments
I started some experiments in a separate repository. Here is the diff from
Note that some features are not working now for the
Currently, the diff contains +3,680 additions and 499 deletions! Most of the additions are duplicate codes to I will do some refactoring to remove some duplicate codes between |
I started to work on this task again for v0.12.0 release: |
On Feb 13, 2023, tatsuya6502 wrote:
|
Closing as completed. For v0.12.0, we added changed the notification delivery mode for the We removed the queued delivery mode from all cache types (both |
Split from
#145
(comment).Immediate
delivery mode in the first paragraph above.moka
instead of having both worker-threads/non-worker-threads versions")I started some experiments. It seems implementing
Immediate
mode tofuture
cache will require the following API changes:get
method will become anasync fn
.blocking().insert(..)
andblocking().invalidate(..)
methods will be removed.()
toListenerFuture
. which isPin<Box<dyn Future<Output = ()> + Send>>
:impl Fn(Arc<K>, V, RemovalCause) -> ListenerFuture + Send + Sync + 'static
The text was updated successfully, but these errors were encountered: