Hi All,
This has come up a lot, and there has been some healthy debate on it. But i'm looking for some up to date ideas.
I have a REST API which returns JSON, there is a couple of different interfaces i'm using on the API.
What I am looking for is a good way to cache the data for quick access and also offline access.
A lot of people look at using a mini SQL-lite database on the device itself, but for me the difficulty here is that I need to write SQL queries to read & write the data and considering the JSON is changing (I manage the web interface as well), there is a lot of duplication of work.
The other idea I had was just storing the JSON raw as files to the local filesystem, which means I could just read these and deserialize these the exact same way that I am calling the REST method. The problem with this method is what appears to be how insanely difficult it is to read & write files locally using a PCL project (with no access to System.File.IO).
Is anyone aware of anything that makes this task simple? Or ideas?