When creating mobile (specially Android) applications, I usually come to touch with similar patterns of working with data.
Usually, I need to fetch some remote data (covered by an authorization process) to a local cache. And on next request:
- Check networking
- Check presence of cache file
- Check the version of the cache file (if networking)
- Get the new version and save the cache file (if networking and file not in cache, or outdated)
Data store is no-SQL JSON Document-Based (and yes, I know about CouchDB Android version, but it doesn't fit my needs yet.)
Process of authorizing to data source and code for check version of local cache is adapted to application. But the other code (handling network, saving cache, handling exceptions,...) is always the same.
Is there any Data Store helper I can use, which provides functions I described above?