public final class HttpCachePolicy
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpCachePolicy.ExpirePolicy
Cache policy with provided expiration configuration
|
static class |
HttpCachePolicy.FetchStrategy
Represents different fetch strategies for http request / response cache
|
static class |
HttpCachePolicy.Policy
Abstraction for http cache policy configurations
|
| Modifier and Type | Field and Description |
|---|---|
static HttpCachePolicy.ExpirePolicy |
CACHE_FIRST
Signals the apollo client to first fetch the GraphQL query response from the http cache.
|
static HttpCachePolicy.ExpirePolicy |
CACHE_ONLY
Signals the apollo client to fetch the GraphQL query response from the http cache only.
|
static HttpCachePolicy.ExpirePolicy |
NETWORK_FIRST
Signals the apollo client to first fetch the GraphQL query response from the network.
|
static HttpCachePolicy.Policy |
NETWORK_ONLY
Signals the apollo client to fetch the GraphQL query response from the network only.
|
public static final HttpCachePolicy.ExpirePolicy CACHE_ONLY
public static final HttpCachePolicy.Policy NETWORK_ONLY
public static final HttpCachePolicy.ExpirePolicy CACHE_FIRST
public static final HttpCachePolicy.ExpirePolicy NETWORK_FIRST