apko
apko copied to clipboard
Rework flight cache into a strongly typed version
This reworks the flight cache we already have into a strongly typed version based on a map and sync.OnceValues. That allows us to get rid of type assertions and unnecessary error handling in its implementation. Also add some tests for the behavior of flight cache.