Class EvictStaleCachedResponsesJob
java.lang.Object
edu.ucsb.cs156.diningcachingproxy.jobs.EvictStaleCachedResponsesJob
- All Implemented Interfaces:
edu.ucsb.cs156.jobs.services.JobContextConsumer
public class EvictStaleCachedResponsesJob
extends Object
implements edu.ucsb.cs156.jobs.services.JobContextConsumer
Deletes every cached response not accessed since
cutoff. Many upstream paths are
date-parameterized (e.g. /dining/menu/v1/2026-08-23/carrillo) and are almost never
requested again once their date passes, so without this the cache collection would grow without
bound. Run via JobService so each run (and how much it deleted) is visible at
/api/jobs.-
Constructor Details
-
EvictStaleCachedResponsesJob
public EvictStaleCachedResponsesJob()
-
-
Method Details
-
accept
-