LeagueJS
LeagueJS copied to clipboard
Work out StaticData / DDragon caching
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.