Adding the Spring Boot Starter Cache dependency

The following snippet shows the spring-boot-starter-cache dependency. Itt brings in all the dependencies and auto-configuration needed to configure a cache:

    <dependency>      <groupId>org.springframework.boot</groupId>      <artifactId>spring-boot-starter-cache</artifactId>    </dependency>

Get Mastering Spring 5.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.