-
Hi, I'm currently using Caffeine with Spring Caffeine cache support implementation. I want to know is there any support for Async LoadingCache support on the spring cache? or if I want async caching do I want to move out with AsyncLoadingCache without spring caffeine cache support; |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
My limited understanding is that Spring Cache does not support asynchronous caching, e.g. by using Reactor. The interfaces assume blocking calls where the values are opaque objects. You would have to ask the Spring folks for more advice, but I believe they have previously expressed no interest in asynchronous support. Unfortunately my experience with that framework is over a decade old, so I can't offer much help. In the past, the Spring Cache authors have said their abstraction is only intended for simple, common cases. Any advanced cases should be handled by using the native apis. You should be able to use |
Beta Was this translation helpful? Give feedback.
-
Hello! Can I assume that plain (or manual) cache is non-blocking? When I compute values on my side and just want to use |
Beta Was this translation helpful? Give feedback.
My limited understanding is that Spring Cache does not support asynchronous caching, e.g. by using Reactor. The interfaces assume blocking calls where the values are opaque objects. You would have to ask the Spring folks for more advice, but I believe they have previously expressed no interest in asynchronous support. Unfortunately my experience with that framework is over a decade old, so I can't offer much help.
In the past, the Spring Cache authors have said their abstraction is only intended for simple, common cases. Any advanced cases should be handled by using the native apis. You should be able to use
AsyncLoadingCache
directly and convert between futures and monos, for use by spri…