43 |
|
|
44 |
public DepartureBean cachedLookupDepartures(int stationID, boolean arrival) throws Exception { |
public DepartureBean cachedLookupDepartures(int stationID, boolean arrival) throws Exception { |
45 |
final String key = "" + stationID + ":" + arrival; |
final String key = "" + stationID + ":" + arrival; |
46 |
/* |
|
47 |
DepartureBean departureBean = cache.get(key); |
DepartureBean departureBean = cache.get(key); |
48 |
|
|
49 |
|
|
54 |
Statistics.getInstance().incrementDepartureCacheHits(); |
Statistics.getInstance().incrementDepartureCacheHits(); |
55 |
logger.info("Departure: Cache hit " + key); //remove before production |
logger.info("Departure: Cache hit " + key); //remove before production |
56 |
} |
} |
57 |
return departureBean;*/ |
return departureBean; |
|
|
|
|
return lookupDepartures(stationID,arrival); |
|
58 |
} |
} |
59 |
|
|
60 |
|
|