public final class CacheStrategy extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CacheStrategy.Factory |
| Modifier and Type | Field and Description |
|---|---|
Response |
cacheResponse
缓存响应以返回或验证;如果这个调用不使用缓存,则为null
|
Request |
networkRequest
请求在网络上发送,如果调用不使用网络则为空
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isCacheable(Response response,
Request request)
如果
response可以存储为以后服务另一个请求,则返回true |
Copyright © 2019. All rights reserved.