Browse Source

更新策略

develop
wangsixiang 8 months ago
parent
commit
f4dd5e4a75
  1. 2
      zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java

2
zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java

@ -198,7 +198,7 @@ public class DcWarningServiceImpl implements IDcWarningService
return 0;
}
String id = dcWarning.getId();//取出加入后的id作为value
redisCache.setCacheObject(WARNINGDATA+key,id,24,TimeUnit.HOURS);//加入缓存,防止redis数据累计这里也要设置过期时间,设置为24小时
redisCache.setCacheObject(WARNINGDATA+key,id,24,TimeUnit.HOURS);//加入缓存,防止redis数据累计,这里也要设置过期时间,设置为24小时
return 1;//结束
}
//redis存在数据,取出redis的id找对对应事件的配置,合成事件配置

Loading…
Cancel
Save