giladgray/WhichBus — comment on commit 883347dc756b36e84a16062f158e599571877836
File:  line 0
By giladgray:

Yeah rails has basic caching out of the box, it's pretty neat. We'll probably want to look into something fancier like memcache but that involves changing just one line (in config) so whatever.
OpenStruct is a gem we use to convert the JSON results from 1BA to Ruby objects (thanks Dave Remy).
I don't know what a real 1BA key looks like, but I'll definitely update the regex when we get one. Or maybe we'll just remove that part because we don't actually need the API key.
I think the next step is to cache arrivals and departures for 1 minute or so, in anticipation of multiple concurrent users. But I still believe creating our own stop and route database is a more robust solution.