Authored by ping

update

@@ -109,7 +109,7 @@ public class UnionServiceImpl implements IUnionService { @@ -109,7 +109,7 @@ public class UnionServiceImpl implements IUnionService {
109 // } 109 // }
110 110
111 //保存到缓存中,有效期三个小时 111 //保存到缓存中,有效期三个小时
112 - yhValueOperations.setIfAbsent(key, JSON.toJSONString(request)); 112 + yhValueOperations.set(key, JSON.toJSONString(request));
113 DynamicIntProperty activeTime = DynamicPropertyFactory.getInstance().getIntProperty("activeTime", 24 * 60 * 60); 113 DynamicIntProperty activeTime = DynamicPropertyFactory.getInstance().getIntProperty("activeTime", 24 * 60 * 60);
114 yHRedisTemplate.longExpire(key, activeTime.get(), TimeUnit.SECONDS); 114 yHRedisTemplate.longExpire(key, activeTime.get(), TimeUnit.SECONDS);
115 log.info("clickUnion set redis success with request={}", request); 115 log.info("clickUnion set redis success with request={}", request);