public interface LocalCache
An HTTP response cache that allows retrieval, metadata updates, insertion and removal.
-
Method Summary
Modifier and TypeMethodDescriptionget
(HttpRequest request) put
(HttpRequest request, NetworkResponse networkResponse, @Nullable CacheResponse cacheResponse) boolean
void
update
(CacheResponse cacheResponse)
-
Method Details
-
get
- Throws:
IOException
InterruptedException
-
update
- Throws:
IOException
InterruptedException
-
put
Optional<NetworkResponse> put(HttpRequest request, NetworkResponse networkResponse, @Nullable CacheResponse cacheResponse) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
removeAll
- Throws:
IOException
InterruptedException
-