devine
devine copied to clipboard
Add Caching of Title and Title Tracks for x duration
Is your feature request related to a problem? Please describe. This would be useful to not call the Service code's API calls so often, for ultimately the same calls (i.e., on error or when you want to change devine CLI args).
Describe the solution you'd like It should jsonpickle the Titles and the Title's Tracks (once loaded) for say 30 minutes to the cache folder. This cache should be kept for longer if further calls after the 30 minutes fail.
Describe alternatives you've considered N/A
Additional context Some services or titles may update at a more frequent pace. Perhaps like GEOFENCE and ALIASES, there should be a CACHE_TIME variable. Another problem is if the title fails after say 30 minutes, then what's to say it won't fail forever, I.e., a removed title or an outdated title id? Perhaps it should be purged after at least some sort of duration still, just not the 30 minutes.