车迟斗法报错
parent
e40d422d55
commit
fbc893124f
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue