1.导入spring-boot-starter-data-redis起步依赖
2.在配置文件中, 配置redis连接信息
3.调用API(StringRedisTemplate)完成字符串的存取操作
```
//把token存储在redis中
ValueOperations<String, String> operations = stringRedisTemplate.opsForValue();
operations.set(token,token,1, TimeUnit.HOURS);
ValueOperations<String, String> operations = stringRedisTemplate.opsForValue();
operations.getOperations().delete(token);
标签:集成,operations,springboot,opsForValue,redis,ValueOperations,token
From: https://www.cnblogs.com/kisssheep/p/18081307