|
|
@@ -1,6 +1,7 @@
|
|
|
package com.izouma.nineth.service;
|
|
|
|
|
|
import org.springframework.cache.annotation.CacheEvict;
|
|
|
+import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@Service
|
|
|
@@ -41,6 +42,7 @@ public class CacheService {
|
|
|
public void clearCollectionList() {
|
|
|
}
|
|
|
|
|
|
+ @Scheduled(cron = "1 0 0 ? * 2")
|
|
|
@CacheEvict(value = "weekTop", allEntries = true)
|
|
|
public void clearWeekTop() {
|
|
|
}
|