|
@ -95,6 +95,10 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
String fv_jdbc_username;
|
|
|
@Value("${fv.jdbc.password}")
|
|
|
String fv_jdbc_password;
|
|
|
@Value("${redis.quota.current.expire}")
|
|
|
Integer currentExpire=2;
|
|
|
|
|
|
|
|
|
@Override
|
|
|
public void execute(JobExecutionContext context)
|
|
|
throws JobExecutionException {
|
|
@ -167,7 +171,7 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
quartzJobLog.setJobEndTime(new Date());
|
|
|
quartzJobLogDao.save(quartzJobLog);
|
|
|
for (String key :RedisStorage.keys){
|
|
|
redisTemplate.expire(key, 1, TimeUnit.HOURS);//1小时过期
|
|
|
redisTemplate.expire(key, currentExpire, TimeUnit.HOURS);//2小时过期
|
|
|
}
|
|
|
RedisStorage.keys.clear();//清空Key
|
|
|
|