Repository Design Pattern
Krzychu Kosobudzki

Thank you for this great post.
I want to know how I can synchronize the cached data in the repository with both database and network. I mean if the user add a news Item, let’s say we have a list of cached item, and we want to store this new Item in both local database (Sqlite) and the server. And vice versa, if there’s new items from the server we must update both local database and cache.
Thanks :)