

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: State
incomplete
2: PokeAPI
incomplete
3: Cache Add/Get
incomplete
4: Cache Reaping
incomplete
5: Cache Integration
incomplete
6: Explore
incomplete
7: Catch
incomplete
8: Inspect
incomplete
This lesson's interactive features are locked, please to keep using them
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.
Run and submit the CLI tests from the root of the repo.