This final recipe will be about enhancing data retrieval from the data source through Spring Cache. Just like the rest of the recipes, Spring Boot 2.0 provides an auto-configuration when it comes to caching. It supports cache implementations such as Ehcache, Infinispan, Caffeine, Hazelcast, and Redis. The following is a recipe on how to use two caching types in one reactive application.
Applying Spring Cache
Getting started
Open, for the last time, ch09-flux and enable Ehcache and Caffeine caching.
How to do it...
To enable Spring Cache in Spring Boot 2.0 application,...