Skip to content

Instantly share code, notes, and snippets.

@digitalbuddha
Created November 24, 2019 15:59
Embed
What would you like to do?
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