z-chu / RxCache

简单一步,缓存搞定。这是一个专用于 RxJava,解决 Android 中对任何 Observable 发出的结果做缓存处理的框架

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cacheAndRemote使用问题

ZQ7 opened this issue · comments

commented

CacheStrategy.cacheAndRemote()这个缓存策略在 存在缓存网络错误 时没有走onNext,只回调了一次onError,但是在Debug调试CacheAndRemoteStrategy中的代码时,正常返回,回调一次onError一次onNext,求问一下这是什么问题

commented

配置应该是没有问题的,firstRemote(优先网络,缓存用异步的方式保存)这种策略可以

你解决了吗

不知道你是否是在mergeDelayError中使用的
mergeDelayError有一个坑的。
具体看 https://blog.csdn.net/shuxiangxingkong/article/details/52516018 里面说的