Package-level declarations

Types

Link copied to clipboard
interface ApolloHttpCache
Link copied to clipboard
class DiskLruHttpCache(fileSystem: FileSystem, directory: File, maxSize: Long) : ApolloHttpCache
Link copied to clipboard

Properties

Link copied to clipboard

Functions

Link copied to clipboard
@JvmName(name = "configureApolloClientBuilder")
fun ApolloClient.Builder.httpCache(apolloHttpCache: ApolloHttpCache): ApolloClient.Builder

@JvmName(name = "configureApolloClientBuilder")
fun ApolloClient.Builder.httpCache(directory: File, maxSize: Long): ApolloClient.Builder

Configures a persistent LRU HTTP cache for the ApolloClient.

Link copied to clipboard

Configures httpDoNotStore. Entries will never be stored if set to true.

Link copied to clipboard
fun <T> MutableExecutionOptions<T>.httpExpireAfterRead(httpExpireAfterRead: Boolean): T

Configures httpExpireAfterRead. Entries will be removed from the cache after read if set to true.

Link copied to clipboard
fun <T> MutableExecutionOptions<T>.httpExpireTimeout(httpExpireTimeout: Long): T

Configures httpExpireTimeout. Entries will be removed from the cache after this timeout.

Link copied to clipboard