ApolloHttpCache

Deprecated

Use `DefaultHttpRequestComposer(enablePostCaching = true)` instead. See https://go.apollo.dev/ak-http-cache

Inheritors

Functions

Link copied to clipboard
abstract fun clearAll()
Link copied to clipboard
abstract fun read(cacheKey: String): HttpResponse
Link copied to clipboard
abstract fun remove(cacheKey: String)
Link copied to clipboard
abstract fun write(response: HttpResponse, cacheKey: String): HttpResponse

Store the response with the given cacheKey into the cache. The response's body is not consumed nor closed.