Fenrus icon indicating copy to clipboard operation
Fenrus copied to clipboard

Feature request - cached files within smart apps

Open Frooodle opened this issue 2 years ago • 1 comments

As a user i would want to be able to utilise a utiliatly method which would allow me to call json files which are static and provide a method of caching the result for future runs to avoid multiple web calls. This method should allow generic caching of a json output (unique per app) as well as caching of a json output based on a key which when changed would require the cache to be reloaded. For my usecase example, i would want to query and cache https://static.developer.riotgames.com/docs/lol/maps.json and https://static.developer.riotgames.com/docs/lol/queues.json but re-query it when a new version appears in https://ddragon.leagueoflegends.com/api/versions.json position 0

Frooodle avatar Aug 23 '22 21:08 Frooodle

Even for the https://ddragon.leagueoflegends.com/api/versions.json call it might be nice to cache but clear it every 12 hours or something

Frooodle avatar Aug 23 '22 21:08 Frooodle

dotnet rewrite, creates a instance of the app that is reused for subsequent updates. these are eventually disposed (after 30 minutes), but will provide some caching.

Is this sufficient?

revenz avatar Apr 03 '23 08:04 revenz