com.apollographql.apollo.cache.http.ApolloHttpCache.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apollo-http-cache Show documentation
Show all versions of apollo-http-cache Show documentation
Apollo GraphQL http cache network transport
The newest version!
package com.apollographql.apollo.cache.http
import com.apollographql.apollo.api.http.HttpResponse
import java.io.IOException
interface ApolloHttpCache {
fun read(cacheKey: String): HttpResponse
/**
* Store the [response] with the given [cacheKey] into the cache.
* The response's body is not consumed nor closed.
* @return a new [HttpResponse] whose body, when read, will write the contents to the cache.
*/
fun write(response: HttpResponse, cacheKey: String): HttpResponse
@Throws(IOException::class)
fun clearAll()
@Throws(IOException::class)
fun remove(cacheKey: String)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy