arthurnn / cheatly

A cheat-sheet cli for a cheat repository
MIT License
47 stars 16 forks source link

Add cache folder in user home dir #25

Open hauleth opened 10 years ago

hauleth commented 10 years ago

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.

arthurnn commented 10 years ago

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.