ApolloCacheHeaders

A collection of cache headers that Apollo's implementations of NormalizedCache respect.

Properties

Link copied to clipboard
const val CURRENT_DATE: String

The current date, as the number of seconds since the epoch.

Link copied to clipboard
const val DO_NOT_STORE: String

Records from this request should not be stored in the NormalizedCache.

Link copied to clipboard

True if field errors are allowed to replace cached values.

Link copied to clipboard
Link copied to clipboard

The value of this header will be stored in the Record's expiration date.

Link copied to clipboard
const val MAX_STALE: String

How long to accept stale fields

Link copied to clipboard

Records should be stored and read from the MemoryCache only.

Link copied to clipboard

The value of this header will be stored in the Record's received date.

Link copied to clipboard
const val SKIP_MERGE: String

When true, NormalizedCache.merge skips merging records with the existing ones, instead, they are inserted as-is.

Link copied to clipboard
const val STALE: String

True if the returned data is considered stale