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

Spring 5 Webflux의 Cacheable annotation 지원 #32

Open
hjyun328 opened this issue May 21, 2021 · 0 comments
Open

Spring 5 Webflux의 Cacheable annotation 지원 #32

hjyun328 opened this issue May 21, 2021 · 0 comments

Comments

@hjyun328
Copy link
Collaborator

hjyun328 commented May 21, 2021

Spring 5 Webflux 모델에서는 Spring Cache의 annotation을 사용할 수 없다.
WebFlux 모델에서는 실제 Value Object가 아닌 Flux, Mono가 리턴이 되는 구조이기 때문이다.

public Mono<Object> mono() {
   ...
}

Spring 5의 Webflux 모델에 대해 이해하고, WebFlux 구조에서 Cache를 쉽게 적용할 수 있는 방법에 대해 고민하고 arcus-spring에서 이를 지원할 수 있도록 한다.

참고

https://dreamchaser3.tistory.com/17
https://stackoverflow.com/questions/48156424/spring-webflux-and-cacheable-proper-way-of-caching-result-of-mono-flux-type

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