unmojang / drasl

Yggdrasil-compatible API server for Minecraft

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cache responses from fallback API servers

evan-goode opened this issue · comments

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.

  • Implement cache
  • Tests
  • Configurable size
  • Docs