Skip to content

Commit

Permalink
Merge pull request #36 from consiglionazionaledellericerche/34-introd…
Browse files Browse the repository at this point in the history
…uzione-meccanismo-di-cache-di-tipi-di-marcatura

Aggiunta configurazione per annotazione scheduled nei test.
  • Loading branch information
criluc authored Mar 19, 2024
2 parents a71ace7 + d962f2b commit 2f8d5b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void evictAllCaches() {
cacheManager.getCacheNames().stream()
.forEach(cacheName -> cacheManager.getCache(cacheName).clear());
}

@Scheduled(fixedRateString = "${caching.spring.timeDetailTypes}")
public void evictAllcachesAtIntervals() {
evictAllCaches();
Expand Down
4 changes: 3 additions & 1 deletion src/test/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ epas.password=timesheet

# Utilizzata per autenticare le chiamate REST a questo servizio
security.username=epas.timesheet
security.password=timesheet
security.password=timesheet

caching.spring.timeDetailTypes=60000

0 comments on commit 2f8d5b6

Please sign in to comment.