Package com.apollographql.apollo3.cache.http
Types
Link copied to clipboard
Link copied to clipboard
class CachingHttpInterceptor( directory: File, maxSize: Long, fileSystem: FileSystem = FileSystem.SYSTEM) : HttpInterceptor
Content copied to clipboard
Link copied to clipboard
class DiskLruHttpCache( fileSystem: FileSystem, directory: File, maxSize: Long) : ApolloHttpCache
Content copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
fun ApolloClient.Builder.httpCache(directory: File, maxSize: Long): ApolloClient.Builder
Content copied to clipboard
Configures a persistent LRU HTTP cache for the ApolloClient.
Link copied to clipboard
fun <T> MutableExecutionOptions<T>.httpDoNotStore(httpDoNotStore: Boolean): T
Content 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
Content copied to clipboard
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
Content copied to clipboard
Configures httpExpireTimeout. Entries will be removed from the cache after this timeout.
Link copied to clipboard
fun <T> MutableExecutionOptions<T>.httpFetchPolicy(httpFetchPolicy: HttpFetchPolicy): T
Content copied to clipboard
Configures the HttpFetchPolicy