/
Launch Apollo Studio


ENUM

CachePolicy

public enum CachePolicy

A cache policy that specifies whether results should be fetched from the server or loaded from the local cache.

Cases

returnCacheDataElseFetch

case returnCacheDataElseFetch

Return data from the cache if available, else fetch results from the server.

fetchIgnoringCacheData

case fetchIgnoringCacheData

Always fetch results from the server.

fetchIgnoringCacheCompletely

case fetchIgnoringCacheCompletely

Always fetch results from the server, and don't store these in the cache.

returnCacheDataDontFetch

case returnCacheDataDontFetch

Return data from the cache if available, else return nil.

returnCacheDataAndFetch

case returnCacheDataAndFetch

Return data from the cache if available, and always fetch results from the server.

Edit on GitHub