redis中StringRedisTemplate的setIfAbsent方法设置过期时间

spring-data-redis中的StringRedisTemplate从2.1及以上开始支持设置过期时间。之前版本只能设置值,不能设置过期时间。

原文地址:https://www.cnblogs.com/super-chao/p/15226347.html