Created
November 24, 2019 15:59
-
-
Save digitalbuddha/e1d077c5ea28421bf8b284a8703386d5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Store<Article, Integer> store = StoreBuilder.<Integer, BufferedSource, Article>parsedWithKey() | |
.fetcher(articleId -> api.getArticles(articleId)) | |
.persister(FileSystemPersister.create(FileSystemFactory.create(context.getFilesDir()), pathResolver)) | |
.parser(GsonParserFactory.createSourceParser(gson, String.class)) | |
.open(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment