httpCache

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

Configures a persistent LRU HTTP cache for the ApolloClient.

Parameters

directory

: the directory where the cache will be persisted

maxSize

: the maxSize in bytes that the cache acn occupy

See also ApolloClient.Builder.httpEngine and ApolloClient.Builder.networkTransport


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