Spring Boot 之Redis

Spring Boot Redis operation of the package, which interface Operations.

Use steps:
1. increased reliance. (A little longer)

org.springframework.boot
spring-boot-starter-data-redis

2. configuration properties. (Does not affect unworthy)
Configuration package provided Spring Boot objects and redisTemplate Redis Cache configuration.
4. Use only the service layer redisTemplate redisTemplate method or packaged as service class.

Guess you like

Origin www.cnblogs.com/zd540/p/11286559.html