基於spring的redisTemplate的緩存工具類
阿新 • • 發佈:2018-06-15
pri note you ref tar youdao release 雲筆記 pid
pom.xml文件添加
<!-- config redis data and client jar -->
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-redis</artifactId>
<version>1.8.1.RELEASE</version>
</dependency>
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>2.9.0</version>
</dependency>
剩下的內容參考下方我的有道雲筆記鏈接:
http://note.youdao.com/noteshare?id=fd3f0d7bd110088e73fb000d7c1cf091&sub=1573EB9218FB40CA8A44C7D4B206B8D4
基於spring的redisTemplate的緩存工具類