29 |
List<DepartureBean> list = cache.get(stationID); |
List<DepartureBean> list = cache.get(stationID); |
30 |
|
|
31 |
if (list == null) { |
if (list == null) { |
|
logger.warning("Departure: Cache miss " + stationID); //remove before production |
|
32 |
list = lookupDepartures(stationID); |
list = lookupDepartures(stationID); |
33 |
cache.put(stationID, list); |
cache.put(stationID, list); |
34 |
} else { |
} else { |
35 |
logger.warning("Departure: Cache hit " + stationID); //remove before production |
logger.info("Departure: Cache hit " + stationID); //remove before production |
36 |
} |
} |
37 |
return list; |
return list; |
38 |
} |
} |