sixhours-team / memcached-spring-boot

Library that provides support for auto-configuration of Memcached cache in a Spring Boot application.
Apache License 2.0
71 stars 33 forks source link

Webflux: Does this work with Mono<T>? #103

Open upen4a3 opened 4 years ago

upen4a3 commented 4 years ago

Currently I am building an app in reactive programming using spring webflux. Can we use this to cache Mono?And Does this work with "prefix"?

igorbolic commented 4 years ago

The current Spring Cache API is based on blocking calls, hence the cache annotations would most probably not work with Reactor's Mono and Flux. We're gonna check a bit further if support for reactive types could be added within the library. I'll write you an update in this issue...

As for the prefix, yes it's supported within the library with memcached.cache.prefix configuration property.