ApolloCacheHeaders

object ApolloCacheHeaders

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

Properties

Link copied to clipboard
const val DATE: String

The value of this header will be stored in the Record fields date

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
const val EVICT_AFTER_READ: String

Records from this request should be evicted after being read.

Link copied to clipboard
const val MAX_STALE: String

How long to accept stale fields

Link copied to clipboard

To configure whether to store partial responses, please use the storePartialResponses() extension instead.