Cache responses from fallback API servers
evan-goode opened this issue · comments
Evan Goode commented
Mostly to avoid rate-limiting, we should cache responses from Mojang/Ely.by/whoever's API for a (configurable) short amount of time instead of hitting them over and over.
Use gocache with an in-memory cache? Would rather not bring in redis or memcached.
Evan Goode commented
- Implement cache
- Tests
- Configurable size
- Docs