| Package | Description |
|---|---|
| kong.unirest |
| Modifier and Type | Method and Description |
|---|---|
Cache.Key |
Cache.KeyGenerator.apply(HttpRequest request,
Boolean isAsync,
Class<?> responseType)
A function to generate a cache key
|
| Modifier and Type | Method and Description |
|---|---|
<T> HttpResponse |
Cache.get(Cache.Key key,
Supplier<HttpResponse<T>> fetcher)
Returns the cached HttpResponse for a key or uses the Supplier to fetch the response
|
<T> CompletableFuture |
Cache.getAsync(Cache.Key key,
Supplier<CompletableFuture<HttpResponse<T>>> fetcher)
Returns the cached HttpResponse for a key or uses the Supplier to fetch the response
|
Copyright © 2021. All rights reserved.