cheatly
cheatly copied to clipboard
Add cache folder in user home dir
It will be used as a fallback if there is no internet connection. Otherwise get data from server and check if cache update is needed.
Other idea is to always hit the cache. If there is no hit then go fallback to internet. Problem is updating sheets. It can be solved by adding extra flag --no-cache and command update that will fetch all new sheets.
IMHO 1st option is much better.
Love the idea of a cache... when I was writing the gem, I did different adapter classes exactly to be able to add a cache adapter in the future.