Class CacheEvictionScheduler
java.lang.Object
edu.ucsb.cs156.diningcachingproxy.jobs.CacheEvictionScheduler
Launches a cache eviction run on a schedule (nightly at 3am Pacific by default; override with
app.cache.eviction.cron, or set it to - to disable). Scheduling itself is enabled
by lib-jobs' auto-configuration.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CacheEvictionScheduler
public CacheEvictionScheduler()
-
-
Method Details
-
evictStaleCachedResponses
@Scheduled(cron="${app.cache.eviction.cron:0 0 3 * * *}", zone="America/Los_Angeles") public void evictStaleCachedResponses()
-