| Package | Description | 
|---|---|
| org.apache.hc.client5.http.cache | Caching APIs for both the classic and the asynchronous
 HTTP transports. | 
| org.apache.hc.client5.http.impl.cache | Caching API implementation for both the classic and
 the asynchronous HTTP transports. | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpCacheEntry | HttpCacheCASOperation. execute(HttpCacheEntry existing)Returns the new cache entry that should replace an existing one. | 
| HttpCacheEntry | HttpCacheStorageEntry. getContent() | 
| HttpCacheEntry | HttpCacheStorage. getEntry(String key)Retrieves the cache entry stored under the given key
 or null if no entry exists under that key. | 
| Modifier and Type | Method and Description | 
|---|---|
| Map<String,HttpCacheEntry> | HttpCacheStorage. getEntries(Collection<String> keys)Retrieves multiple cache entries stored under the given keys. | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpCacheEntry | HttpCacheCASOperation. execute(HttpCacheEntry existing)Returns the new cache entry that should replace an existing one. | 
| void | HttpCacheStorage. putEntry(String key,
        HttpCacheEntry entry)Store a given cache entry under the given key. | 
| org.apache.hc.core5.concurrent.Cancellable | HttpAsyncCacheStorageAdaptor. putEntry(String key,
        HttpCacheEntry entry,
        org.apache.hc.core5.concurrent.FutureCallback<Boolean> callback) | 
| org.apache.hc.core5.concurrent.Cancellable | HttpAsyncCacheStorage. putEntry(String key,
        HttpCacheEntry entry,
        org.apache.hc.core5.concurrent.FutureCallback<Boolean> callback)Store a given cache entry under the given key. | 
| Modifier and Type | Method and Description | 
|---|---|
| org.apache.hc.core5.concurrent.Cancellable | HttpAsyncCacheStorageAdaptor. getEntries(Collection<String> keys,
          org.apache.hc.core5.concurrent.FutureCallback<Map<String,HttpCacheEntry>> callback) | 
| org.apache.hc.core5.concurrent.Cancellable | HttpAsyncCacheStorage. getEntries(Collection<String> keys,
          org.apache.hc.core5.concurrent.FutureCallback<Map<String,HttpCacheEntry>> callback)Retrieves multiple cache entries stored under the given keys. | 
| org.apache.hc.core5.concurrent.Cancellable | HttpAsyncCacheStorageAdaptor. getEntry(String key,
        org.apache.hc.core5.concurrent.FutureCallback<HttpCacheEntry> callback) | 
| org.apache.hc.core5.concurrent.Cancellable | HttpAsyncCacheStorage. getEntry(String key,
        org.apache.hc.core5.concurrent.FutureCallback<HttpCacheEntry> callback)Retrieves the cache entry stored under the given key
 or null if no entry exists under that key. | 
| Constructor and Description | 
|---|
| HttpCacheStorageEntry(String key,
                     HttpCacheEntry content) | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpCacheEntry | AbstractSerializingCacheStorage. getEntry(String key) | 
| HttpCacheEntry | BasicHttpCacheStorage. getEntry(String url)Gets an entry from the cache, if it exists | 
| HttpCacheEntry | ManagedHttpCacheStorage. getEntry(String url) | 
| Modifier and Type | Method and Description | 
|---|---|
| Map<String,HttpCacheEntry> | AbstractSerializingCacheStorage. getEntries(Collection<String> keys) | 
| Map<String,HttpCacheEntry> | BasicHttpCacheStorage. getEntries(Collection<String> keys) | 
| Map<String,HttpCacheEntry> | ManagedHttpCacheStorage. getEntries(Collection<String> keys) | 
| Modifier and Type | Method and Description | 
|---|---|
| String | CacheKeyGenerator. generateKey(org.apache.hc.core5.http.HttpHost host,
           org.apache.hc.core5.http.HttpRequest request,
           HttpCacheEntry entry)Computes a key for the given  HttpHostandHttpRequestthat can be used as a unique identifier for cached resources. | 
| String | CacheKeyGenerator. generateVariantKey(org.apache.hc.core5.http.HttpRequest req,
                  HttpCacheEntry entry)Computes a "variant key" from the headers of a given request that are
 covered by the Vary header of a given cache entry. | 
| void | AbstractSerializingCacheStorage. putEntry(String key,
        HttpCacheEntry entry) | 
| void | BasicHttpCacheStorage. putEntry(String url,
        HttpCacheEntry entry)Places a HttpCacheEntry in the cache | 
| void | ManagedHttpCacheStorage. putEntry(String url,
        HttpCacheEntry entry) | 
| org.apache.hc.core5.concurrent.Cancellable | AbstractSerializingAsyncCacheStorage. putEntry(String key,
        HttpCacheEntry entry,
        org.apache.hc.core5.concurrent.FutureCallback<Boolean> callback) | 
| Modifier and Type | Method and Description | 
|---|---|
| org.apache.hc.core5.concurrent.Cancellable | AbstractSerializingAsyncCacheStorage. getEntries(Collection<String> keys,
          org.apache.hc.core5.concurrent.FutureCallback<Map<String,HttpCacheEntry>> callback) | 
| org.apache.hc.core5.concurrent.Cancellable | AbstractSerializingAsyncCacheStorage. getEntry(String key,
        org.apache.hc.core5.concurrent.FutureCallback<HttpCacheEntry> callback) | 
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.