yale8848 / RetrofitCache

RetrofitCache让retrofit2+okhttp3+rxjava配置缓存如此简单。通过注解配置,可以针对每一个接口灵活配置缓存策略;同时让每一个接口方便支持数据模拟,可以代码减小侵入性,模拟数据可以从内存,Assets,url轻松获取。
MIT License
676 stars 85 forks source link

断网缓存数据怎么加载的,或是怎么体现的? #10

Closed MichealWangDan closed 6 years ago

MichealWangDan commented 6 years ago

Mobile:

Android OS:

NetWork:

URL:

LIB Version:


yale8848 commented 6 years ago

1.给接口添加如:@Cache(time = 200000),先加载完一个接口,然后断网,在访问同一个接口,看能否正常显示数据; 2.看 LOGCAT TAG = retrofitcache 提示是否是从缓存加载的数据