public final class ApolloHttpCache
extends java.lang.Object
implements com.apollographql.apollo.api.cache.http.HttpCache
| Constructor and Description |
|---|
ApolloHttpCache(com.apollographql.apollo.api.cache.http.HttpCacheStore cacheStore) |
ApolloHttpCache(com.apollographql.apollo.api.cache.http.HttpCacheStore cacheStore,
com.apollographql.apollo.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
okhttp3.Interceptor |
interceptor() |
okhttp3.Response |
read(java.lang.String cacheKey) |
okhttp3.Response |
read(java.lang.String cacheKey,
boolean expireAfterRead) |
void |
remove(java.lang.String cacheKey) |
void |
removeQuietly(java.lang.String cacheKey) |
public ApolloHttpCache(@NotNull
com.apollographql.apollo.api.cache.http.HttpCacheStore cacheStore)
public ApolloHttpCache(@NotNull
com.apollographql.apollo.api.cache.http.HttpCacheStore cacheStore,
@Nullable
com.apollographql.apollo.Logger logger)
public void clear()
clear in interface com.apollographql.apollo.api.cache.http.HttpCachepublic void remove(@NotNull
java.lang.String cacheKey)
throws java.io.IOException
remove in interface com.apollographql.apollo.api.cache.http.HttpCachejava.io.IOExceptionpublic void removeQuietly(@NotNull
java.lang.String cacheKey)
removeQuietly in interface com.apollographql.apollo.api.cache.http.HttpCachepublic okhttp3.Response read(@NotNull
java.lang.String cacheKey)
read in interface com.apollographql.apollo.api.cache.http.HttpCachepublic okhttp3.Response read(@NotNull
java.lang.String cacheKey,
boolean expireAfterRead)
read in interface com.apollographql.apollo.api.cache.http.HttpCachepublic okhttp3.Interceptor interceptor()
interceptor in interface com.apollographql.apollo.api.cache.http.HttpCache