@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Cache")
public class Cache
extends JsObject
| Modifier | Constructor and Description |
|---|---|
protected |
Cache() |
| Modifier and Type | Method and Description |
|---|---|
Promise<java.lang.Void> |
add(Request request)
The add() method of the Cache interface takes a URL, retrieves it, and adds the resulting response object to the given cache.
|
Promise<java.lang.Void> |
add(RequestInfo request)
The add() method of the Cache interface takes a URL, retrieves it, and adds the resulting response object to the given cache.
|
Promise<java.lang.Void> |
add(java.lang.String request)
The add() method of the Cache interface takes a URL, retrieves it, and adds the resulting response object to the given cache.
|
Promise<java.lang.Void> |
addAll(JsArray<RequestInfo> requests)
The addAll() method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache.
|
Promise<java.lang.Void> |
addAll(RequestInfo[] requests)
The addAll() method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache.
|
Promise<java.lang.Boolean> |
delete(Request request)
The delete() method of the Cache interface finds the Cache entry whose key is the request, and if found, deletes the Cache entry and returns a Promise that resolves to true.
|
Promise<java.lang.Boolean> |
delete(Request request,
CacheQueryOptions options)
The delete() method of the Cache interface finds the Cache entry whose key is the request, and if found, deletes the Cache entry and returns a Promise that resolves to true.
|
Promise<java.lang.Boolean> |
delete(RequestInfo request)
The delete() method of the Cache interface finds the Cache entry whose key is the request, and if found, deletes the Cache entry and returns a Promise that resolves to true.
|
Promise<java.lang.Boolean> |
delete(RequestInfo request,
CacheQueryOptions options)
The delete() method of the Cache interface finds the Cache entry whose key is the request, and if found, deletes the Cache entry and returns a Promise that resolves to true.
|
Promise<java.lang.Boolean> |
delete(java.lang.String request)
The delete() method of the Cache interface finds the Cache entry whose key is the request, and if found, deletes the Cache entry and returns a Promise that resolves to true.
|
Promise<java.lang.Boolean> |
delete(java.lang.String request,
CacheQueryOptions options)
The delete() method of the Cache interface finds the Cache entry whose key is the request, and if found, deletes the Cache entry and returns a Promise that resolves to true.
|
Promise<JsArray<Request>> |
keys()
The keys() method of the Cache interface returns a Promise that resolves to an array of Cache keys.
|
Promise<JsArray<Request>> |
keys(Request request)
The keys() method of the Cache interface returns a Promise that resolves to an array of Cache keys.
|
Promise<JsArray<Request>> |
keys(Request request,
CacheQueryOptions options)
The keys() method of the Cache interface returns a Promise that resolves to an array of Cache keys.
|
Promise<JsArray<Request>> |
keys(RequestInfo request)
The keys() method of the Cache interface returns a Promise that resolves to an array of Cache keys.
|
Promise<JsArray<Request>> |
keys(RequestInfo request,
CacheQueryOptions options)
The keys() method of the Cache interface returns a Promise that resolves to an array of Cache keys.
|
Promise<JsArray<Request>> |
keys(java.lang.String request)
The keys() method of the Cache interface returns a Promise that resolves to an array of Cache keys.
|
Promise<JsArray<Request>> |
keys(java.lang.String request,
CacheQueryOptions options)
The keys() method of the Cache interface returns a Promise that resolves to an array of Cache keys.
|
Promise<ResponseOrUndefinedUnion> |
match(Request request)
The match() method of the Cache interface returns a Promise that resolves to the Response associated with the first matching request in the Cache object.
|
Promise<ResponseOrUndefinedUnion> |
match(Request request,
CacheQueryOptions options)
The match() method of the Cache interface returns a Promise that resolves to the Response associated with the first matching request in the Cache object.
|
Promise<ResponseOrUndefinedUnion> |
match(RequestInfo request)
The match() method of the Cache interface returns a Promise that resolves to the Response associated with the first matching request in the Cache object.
|
Promise<ResponseOrUndefinedUnion> |
match(RequestInfo request,
CacheQueryOptions options)
The match() method of the Cache interface returns a Promise that resolves to the Response associated with the first matching request in the Cache object.
|
Promise<ResponseOrUndefinedUnion> |
match(java.lang.String request)
The match() method of the Cache interface returns a Promise that resolves to the Response associated with the first matching request in the Cache object.
|
Promise<ResponseOrUndefinedUnion> |
match(java.lang.String request,
CacheQueryOptions options)
The match() method of the Cache interface returns a Promise that resolves to the Response associated with the first matching request in the Cache object.
|
Promise<JsArray<Response>> |
matchAll()
The matchAll() method of the Cache interface returns a Promise that resolves to an array of all matching responses in the Cache object.
|
Promise<JsArray<Response>> |
matchAll(Request request)
The matchAll() method of the Cache interface returns a Promise that resolves to an array of all matching responses in the Cache object.
|
Promise<JsArray<Response>> |
matchAll(Request request,
CacheQueryOptions options)
The matchAll() method of the Cache interface returns a Promise that resolves to an array of all matching responses in the Cache object.
|
Promise<JsArray<Response>> |
matchAll(RequestInfo request)
The matchAll() method of the Cache interface returns a Promise that resolves to an array of all matching responses in the Cache object.
|
Promise<JsArray<Response>> |
matchAll(RequestInfo request,
CacheQueryOptions options)
The matchAll() method of the Cache interface returns a Promise that resolves to an array of all matching responses in the Cache object.
|
Promise<JsArray<Response>> |
matchAll(java.lang.String request)
The matchAll() method of the Cache interface returns a Promise that resolves to an array of all matching responses in the Cache object.
|
Promise<JsArray<Response>> |
matchAll(java.lang.String request,
CacheQueryOptions options)
The matchAll() method of the Cache interface returns a Promise that resolves to an array of all matching responses in the Cache object.
|
Promise<java.lang.Void> |
put(RequestInfo request,
Response response)
The put() method of the Cache interface allows key/value pairs to be added to the current Cache object.
|
Promise<java.lang.Void> |
put(Request request,
Response response)
The put() method of the Cache interface allows key/value pairs to be added to the current Cache object.
|
Promise<java.lang.Void> |
put(java.lang.String request,
Response response)
The put() method of the Cache interface allows key/value pairs to be added to the current Cache object.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, is, isExtensible, isFrozen, isSealed, keys, preventExtensions, seal, setPrototypeOf, valueOf_, values@Nonnull public Promise<java.lang.Void> add(@Nonnull RequestInfo request)
@Nonnull public Promise<java.lang.Void> add(@Nonnull Request request)
@Nonnull public Promise<java.lang.Void> add(@Nonnull java.lang.String request)
@Nonnull public Promise<java.lang.Void> addAll(@Nonnull JsArray<RequestInfo> requests)
@Nonnull public Promise<java.lang.Void> addAll(@Nonnull RequestInfo[] requests)
@Nonnull public Promise<java.lang.Boolean> delete(@Nonnull RequestInfo request, @Nonnull CacheQueryOptions options)
@Nonnull public Promise<java.lang.Boolean> delete(@Nonnull Request request, @Nonnull CacheQueryOptions options)
@Nonnull public Promise<java.lang.Boolean> delete(@Nonnull java.lang.String request, @Nonnull CacheQueryOptions options)
@Nonnull public Promise<java.lang.Boolean> delete(@Nonnull RequestInfo request)
@Nonnull public Promise<java.lang.Boolean> delete(@Nonnull Request request)
@Nonnull public Promise<java.lang.Boolean> delete(@Nonnull java.lang.String request)
@Nonnull public Promise<JsArray<Request>> keys(@Nonnull RequestInfo request, @Nonnull CacheQueryOptions options)
@Nonnull public Promise<JsArray<Request>> keys(@Nonnull Request request, @Nonnull CacheQueryOptions options)
@Nonnull public Promise<JsArray<Request>> keys(@Nonnull java.lang.String request, @Nonnull CacheQueryOptions options)
@Nonnull public Promise<JsArray<Request>> keys(@Nonnull RequestInfo request)
@Nonnull public Promise<JsArray<Request>> keys(@Nonnull Request request)
@Nonnull public Promise<JsArray<Request>> keys(@Nonnull java.lang.String request)
@Nonnull public Promise<JsArray<Request>> keys()
@Nonnull public Promise<ResponseOrUndefinedUnion> match(@Nonnull RequestInfo request, @Nonnull CacheQueryOptions options)
@Nonnull public Promise<ResponseOrUndefinedUnion> match(@Nonnull Request request, @Nonnull CacheQueryOptions options)
@Nonnull public Promise<ResponseOrUndefinedUnion> match(@Nonnull java.lang.String request, @Nonnull CacheQueryOptions options)
@Nonnull public Promise<ResponseOrUndefinedUnion> match(@Nonnull RequestInfo request)
@Nonnull public Promise<ResponseOrUndefinedUnion> match(@Nonnull Request request)
@Nonnull public Promise<ResponseOrUndefinedUnion> match(@Nonnull java.lang.String request)
@Nonnull public Promise<JsArray<Response>> matchAll(@Nonnull RequestInfo request, @Nonnull CacheQueryOptions options)
@Nonnull public Promise<JsArray<Response>> matchAll(@Nonnull Request request, @Nonnull CacheQueryOptions options)
@Nonnull public Promise<JsArray<Response>> matchAll(@Nonnull java.lang.String request, @Nonnull CacheQueryOptions options)
@Nonnull public Promise<JsArray<Response>> matchAll(@Nonnull RequestInfo request)
@Nonnull public Promise<JsArray<Response>> matchAll(@Nonnull Request request)
@Nonnull public Promise<JsArray<Response>> matchAll(@Nonnull java.lang.String request)
@Nonnull public Promise<JsArray<Response>> matchAll()
@Nonnull public Promise<java.lang.Void> put(@Nonnull RequestInfo request, @Nonnull Response response)
@Nonnull public Promise<java.lang.Void> put(@Nonnull Request request, @Nonnull Response response)
@Nonnull public Promise<java.lang.Void> put(@Nonnull java.lang.String request, @Nonnull Response response)