RxCache icon indicating copy to clipboard operation
RxCache copied to clipboard

cacheAndRemote使用问题

Open ZQ7 opened this issue 6 years ago • 3 comments

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

ZQ7 avatar Sep 18 '19 09:09 ZQ7

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

ZQ7 avatar Sep 24 '19 06:09 ZQ7

你解决了吗

BaiShou avatar Feb 06 '20 14:02 BaiShou

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

BaiShou avatar Feb 06 '20 14:02 BaiShou