Docs
Launch GraphOS Studio
You're viewing documentation for a previous version of this software. Switch to the latest stable version.


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.

Properties

default

public static var `default`: CachePolicy = .returnCacheDataElseFetch

The current default cache policy.

Next
Introduction
Edit on GitHubEditForumsDiscord

© 2024 Apollo Graph Inc.

Privacy Policy

Company