|
|
@ -119,7 +119,7 @@ public class DcTrafficSectionDataServiceImpl |
|
|
|
/** |
|
|
|
* 定义每小时第20分钟执行的任务,用于清除过期缓存数据并将缓存中的数据整合后保存至数据库。 |
|
|
|
*/ |
|
|
|
@Scheduled(cron = "0 20 * * * ?") // 每小时的20分整点执行该任务
|
|
|
|
// @Scheduled(cron = "0 20 * * * ?") // 每小时的20分整点执行该任务
|
|
|
|
public void performHourlyCleanupAndPersist() { |
|
|
|
// 清除已过期的缓存数据
|
|
|
|
DailyTrafficStatisticsCache.clearExpiredData(); |
|
|
|