LeagueJS icon indicating copy to clipboard operation
LeagueJS copied to clipboard

Work out StaticData / DDragon caching

Open Colorfulstan opened this issue 6 years ago • 0 comments

For now, DataDragon files are stored on the filesystem without expiration (since they don't change).

In-memory caching is used for

  • versions array
  • languages array
  • realms file (array and specific realm files) with a 4h cache.

I assume for the use cases this library is used for this should be fast enough, I might tinker with it at some point, but for now this is good enough for me.

Suggestions / Pull requests always welcome of course.

Colorfulstan avatar Aug 15 '18 18:08 Colorfulstan