-
Notifications
You must be signed in to change notification settings - Fork 31
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
Cached kotlin suspend function drops last cache key parameter #518
Comments
It seems to me that the issue is that I don't think |
Something like this commit seems to do the trick to make my test pass. I can create a PR, if this seems like a good approach to you. |
Just because I stumbled into this right now: I suspect this was previously required to drop the last parameter of a kotlin suspension function, which is usually the "Continuation" parameter. That parameter in particular should not be counting towards the cache-key, but I guess something in core or the annotation-processing changed, such that the parameter is not included. |
Hi team, |
Expected Behavior
When caching a kotlin suspend function with cache parameters explicitly defined, the result should be cached by all those parameters.
Actual Behaviour
The last parameter is dropped from cache key. (Note that it works if the parameters are not explicitly defined).
Steps To Reproduce
Environment Information
No response
Example Application
https://github.com/tPeltola/mncache
Version
3.7.1
The text was updated successfully, but these errors were encountered: