Skip to content
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 Flux with multiple values returns list wrapped in Flux #519

Open
tPeltola opened this issue Oct 14, 2022 · 0 comments
Open

Cached Flux with multiple values returns list wrapped in Flux #519

tPeltola opened this issue Oct 14, 2022 · 0 comments

Comments

@tPeltola
Copy link

Expected Behavior

Cached Flux (or any Publisher) with multiple values should return a Flux containing the same values. (Or fail instantly, if this should not be supported.)

Actual Behaviour

Cached Flux returns a Flux with the values wrapped in a List.

Steps To Reproduce

  1. Return Flux with multiple values from a cached method
    @Cacheable(cacheNames = ["sample"])
    open fun flux(first: Int): Flux<Int> = Flux.just(first, first + 1)
  1. Call the cached service collecting the result
  2. Observe the result is list of list with values

Environment Information

No response

Example Application

https://github.com/tPeltola/mncache/tree/cache-flux-multiple

Version

3.7.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant