This example shows how to make and cache API calls with Ballast Repository. It demonstrates fetching
from the BoardGameGeek XML API v2** and caching the response in-memory in the
BallastRepository. When fetching
a HotList, the cached response will be returned, unless "Force Refresh" is checked or the selected hotlist type has
How to use:
- Select a "HotList Type" from the dropdown menu
- Hit "Fetch HotList" to request the API response from the Repository, which will determine whether to actually hit the API or just return the cached value.
- You can force the API to called again by having "Force Refresh" checked when you hit "Fetch HotList". Alternatively, if you fetched data from one hotlist type (say Board Games), then change to another type (like Video Games), then the list will also be refreshed, even if "Force Refresh" is not checked.