车迟斗法报错

back_recharge
lvxinran 2020-12-14 11:41:05 +08:00
parent e40d422d55
commit fbc893124f
1 changed files with 3 additions and 0 deletions

View File

@ -146,6 +146,9 @@ public class RedisUtil {
// 新名字
String newName = oldName+"BACK:"+System.currentTimeMillis();
// 重命名
if(get(oldName)==null){
continue;
}
redisTemplate.rename(oldName,newName);
// 设置过期时间
expire(newName,60*60*24-60);