We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Cache Integration

It's time to make moving around the map feel a lot snappier. We'll use each request's URL as a cache key.

A lookup that finds data is a cache hit. A lookup that doesn't is a cache miss. On a hit, we can unmarshal the cached bytes into the same response struct we use for a network response. On a miss, we make the request and save the response bytes for next time.

Assignment

Run and submit the CLI tests from the root of the repo.