Persist and validate the latest typed weather snapshot. More...
Public Member Functions | |
| WeatherSnapshot|None | load (self) |
| Load the latest snapshot, ignoring absent or invalid data. | |
| None | store (self, WeatherSnapshot snapshot) |
| Serialize and atomically persist a weather snapshot. | |
Persist and validate the latest typed weather snapshot.
| WeatherSnapshot | None weather.weather_snapshot_cache.WeatherSnapshotCache.load | ( | self | ) |
Load the latest snapshot, ignoring absent or invalid data.
| None weather.weather_snapshot_cache.WeatherSnapshotCache.store | ( | self, | |
| WeatherSnapshot | snapshot | ||
| ) |
Serialize and atomically persist a weather snapshot.
| snapshot | Valid weather data to store. |