ExpirationCacheResolver
A cache resolver that raises a cache miss if the field's received date is older than its max age (configurable via maxAgeProvider) or its expiration date has passed.
Received dates are stored by calling storeReceiveDate(true)
on your ApolloClient
.
Expiration dates are stored by calling storeExpirationDate(true)
on your ApolloClient
.
A maximum staleness can be configured via the ApolloCacheHeaders.MAX_STALE cache header.
See also
Constructors
Link copied to clipboard
constructor()
Creates a new ExpirationCacheResolver with no max ages. Use this constructor if you want to consider only the expiration dates.