memcached-spring-boot icon indicating copy to clipboard operation
memcached-spring-boot copied to clipboard

Webflux: Does this work with Mono<T>?

Open upen4a3 opened this issue 5 years ago • 1 comments

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

upen4a3 avatar Jul 28 '20 02:07 upen4a3

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.

igorbolic avatar Jul 29 '20 13:07 igorbolic