Skip to content

Instantly share code, notes, and snippets.

@marcin-adamczewski
Created June 7, 2017 16:29
Show Gist options
  • Save marcin-adamczewski/47c65af34cbc00254e9826ace4a45db3 to your computer and use it in GitHub Desktop.
Save marcin-adamczewski/47c65af34cbc00254e9826ace4a45db3 to your computer and use it in GitHub Desktop.
favoritesCache = new Cache<Integer, BehaviorSubject<Boolean>>(new Cache.CacheProvider<>() {
@Override
public BehaviorSubject<Boolean> load(@Nonnull final Integer postId) {
return BehaviorSubject.create(false);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment