Web service that provides an API for today's weather forecast for air quality, rain and UV metrics.
Find a file
Paul van Tilburg f67f3dfe82
Only update the cache if retrieval yielded maps
* Add `is_*_stale` methods to the `MapRefresh` trait
* Only update the maps of a type if `retrieve_image` yielded something
  or if the maps are stale
* Also only then bump the timestamp for the map type

This means if there is nothing in the cache, it will retry each refresh
to get something because the timestamp is not bumped until there is
something. Once there are maps, it will only update it and bump the
timestamp if there is an image, that or, it has become stale and it
can be set to `None` and we end up in the initial state.
2022-02-17 21:38:41 +01:00
src Only update the cache if retrieval yielded maps 2022-02-17 21:38:41 +01:00
.gitignore Initial import into Git 2022-02-12 15:03:00 +01:00
Cargo.lock Implement caching for provider get requests (closes: #2) 2022-02-14 21:06:31 +01:00
Cargo.toml Sort Cargo.toml 2022-02-16 22:20:20 +01:00