Join Slack
Is there any official way of caching the result of a `suspend` fun? I realize the generated continua...
# spring
e
Emil Kantis
07/06/2021, 10:46 AM
Is there any official way of caching the result of a
suspend
fun? I realize the generated continuation might be creating issues with how the caching mechanism works..
Emil Kantis
07/06/2021, 10:47 AM
I found this lib, but it doesn't look like an official release, so guessing it won't follow the Spring release-cycle?
https://github.com/konrad-kaminski/spring-kotlin-coroutine
n
nfrankel
07/06/2021, 10:57 AM
i suppose you saw this:
https://stackoverflow.com/questions/58007516/kotlin-coroutine-concurrency-and-cached-value
e
Emil Kantis
07/06/2021, 11:00 AM
No, but it doesn't seem to involve the use of
@Cacheable
at all. I can of course implement my own cache-loading and storage, but I was hoping Spring had 1st class support for kotlin coroutines
643
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by