Package org.apache.http.client.cache
Interface HttpCacheInvalidator
public interface HttpCacheInvalidator
Given a particular HttpRequest, flush any cache entries that this request
would invalidate.
- Since:
- 4.3
-
Method Summary
Modifier and TypeMethodDescriptionvoidflushInvalidatedCacheEntries(HttpHost host, HttpRequest req) Remove cache entries from the cache that are no longer fresh or have been invalidated in some way.voidflushInvalidatedCacheEntries(HttpHost host, HttpRequest request, HttpResponse response) Flushes entries that were invalidated by the given response received for the given host/request pair.
-
Method Details
-
flushInvalidatedCacheEntries
Remove cache entries from the cache that are no longer fresh or have been invalidated in some way.- Parameters:
host- The backend host we are talking toreq- The HttpRequest to that host
-
flushInvalidatedCacheEntries
Flushes entries that were invalidated by the given response received for the given host/request pair.
-