bael-5696 quick fix

Using variable instead of fixed value.
This commit is contained in:
Ulisses Lima
2022-10-24 19:06:08 -03:00
parent dfb8387c67
commit 49e049504c

View File

@@ -27,7 +27,7 @@ public class HotelService {
}
@CacheEvict(value = "hotels", allEntries = true)
@Scheduled(fixedRateString = "43200")
@Scheduled(fixedRateString = "${caching.spring.hotelListTTL}")
public void emptyHotelsCache() {
logger.info("emptying Hotels cache");
}