|
@ -209,7 +209,9 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
initCurrentExpire();//初始化生命周期
|
|
|
|
|
|
for (String key : RedisStorage.keys) {
|
|
|
redisTemplate.expire(key, Integer.valueOf(currentExpire), TimeUnit.HOURS);//2小时过期
|
|
|
if (!StringUtils.isEmpty(key)) {
|
|
|
redisTemplate.expire(key, Integer.valueOf(currentExpire), TimeUnit.HOURS);//2小时过期}
|
|
|
}
|
|
|
}
|
|
|
CachePool.addKeys(RedisStorage.keys);//缓存key
|
|
|
|