public final class CacheAndRemoteDistinctStrategy extends BaseStrategy
描述: 先使用缓存,不管是否存在,仍然请求网络,会先把缓存回调给你, 等网络请求回来发现数据是一样的就不会再返回,否则再返回 (这样做的目的是防止数据是一样的你也需要刷新界面)
<-------此类加载用的是反射 所以类名是灰色的 没有直接引用 不要误删---------------->| Constructor and Description |
|---|
CacheAndRemoteDistinctStrategy() |
| Modifier and Type | Method and Description |
|---|---|
<T> <any> |
execute(RxCache rxCache,
java.lang.String key,
long time,
<any> source,
java.lang.reflect.Type type)
执行缓存
|