摘要 |
Caching travel options, in which a first request is received for lowest available fare data and, responsive to the first request, a determination is made that data for the lowest available fare is not included in a cache. Based on the determination, a request is provided to a core system for the data and the data for the lowest available fare is received from the core system. The received data is stored in the cache and used to respond to the first request. After storing, in the cache, the received data, a second request is received for the lowest available fare. Responsive to the second request, a determination is made that the data for the lowest available fare is included in the cache and, based on that determination, the data is accessed from the cache and used to respond to the second request. |
主权项 |
1. A computer-implemented method using one or more processors, the method comprising:
receiving a first request for lowest available fare data including a lowest available fare for a particular travel route for a specific date; responsive to the first request, determining that data for the lowest available fare for the particular travel route for the specific date is not included in a cache; based on determining that the data for the lowest available fare for the particular travel route for the specific date is not included in the cache, providing, to a core system, a request for the data for the lowest available fare for the particular travel route for the specific date; receiving, from the core system, the data for the lowest available fare for the particular travel route for the specific date; storing, in the cache, the received data for the lowest available fare for the particular travel route for the specific date; responding to the first request based on the data received from the core system for the lowest available fare for the particular travel route for the specific date; after storing, in the cache, the received data for the lowest available fare for the particular travel route for the specific date, receiving a second request for lowest available fare data including the lowest available fare for the particular travel route for the specific date; responsive to the second request, determining that the data for the lowest available fare for the particular travel route for the specific date is included in the cache; based on determining that the data for the lowest available fare for the particular travel route for the specific date is included in the cache, accessing, from the cache, the data for the lowest available fare for the particular travel route for the specific date; and responding to the second request based on the data accessed from the cache for the lowest available fare for the particular travel route for the specific date. |