| Package | Description |
|---|---|
| com.apollographql.apollo.api.cache.http |
| Modifier and Type | Field and Description |
|---|---|
static HttpCachePolicy.ExpirePolicy |
HttpCachePolicy.CACHE_FIRST
Signals the apollo client to first fetch the GraphQL query response from the http cache.
|
static HttpCachePolicy.ExpirePolicy |
HttpCachePolicy.CACHE_ONLY
Signals the apollo client to fetch the GraphQL query response from the http cache only.
|
static HttpCachePolicy.ExpirePolicy |
HttpCachePolicy.NETWORK_FIRST
Signals the apollo client to first fetch the GraphQL query response from the network.
|
| Modifier and Type | Method and Description |
|---|---|
HttpCachePolicy.ExpirePolicy |
HttpCachePolicy.ExpirePolicy.expireAfter(long expireTimeout,
TimeUnit expireTimeUnit)
Create new cache policy with expire after timeout configuration.
|
HttpCachePolicy.ExpirePolicy |
HttpCachePolicy.ExpirePolicy.expireAfterRead()
Create new cache policy with expire after read configuration.
|
Copyright © 2018. All rights reserved.