@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="CacheStorage")
public class CacheStorage
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
CacheStorage() |
| Modifier and Type | Method and Description |
|---|---|
Promise<java.lang.Boolean> |
delete(java.lang.String cacheName)
The delete() method of the CacheStorage interface finds the Cache object matching the cacheName, and if found, deletes the Cache object and returns a Promise that resolves to true.
|
Promise<java.lang.Boolean> |
has(java.lang.String cacheName)
The has() method of the CacheStorage interface returns a Promise that resolves to true if a Cache object matches the cacheName.
|
Promise<JsArray<java.lang.String>> |
keys()
The keys() method of the CacheStorage interface returns a Promise that will resolve with an array containing strings corresponding to all of the named Cache objects tracked by the CacheStorage object in the order they were created.
|
Promise<ResponseOrUndefinedUnion> |
match(Request request)
The match() method of the CacheStorage interface checks if a given Request or url string is a key for a stored Response.
|
Promise<ResponseOrUndefinedUnion> |
match(RequestInfo request)
The match() method of the CacheStorage interface checks if a given Request or url string is a key for a stored Response.
|
Promise<ResponseOrUndefinedUnion> |
match(RequestInfo request,
MultiCacheQueryOptions options)
The match() method of the CacheStorage interface checks if a given Request or url string is a key for a stored Response.
|
Promise<ResponseOrUndefinedUnion> |
match(Request request,
MultiCacheQueryOptions options)
The match() method of the CacheStorage interface checks if a given Request or url string is a key for a stored Response.
|
Promise<ResponseOrUndefinedUnion> |
match(java.lang.String request)
The match() method of the CacheStorage interface checks if a given Request or url string is a key for a stored Response.
|
Promise<ResponseOrUndefinedUnion> |
match(java.lang.String request,
MultiCacheQueryOptions options)
The match() method of the CacheStorage interface checks if a given Request or url string is a key for a stored Response.
|
Promise<Cache> |
open(java.lang.String cacheName)
The open() method of the CacheStorage interface returns a Promise that resolves to the Cache object matching the cacheName.
|
@Nonnull public Promise<java.lang.Boolean> delete(@Nonnull java.lang.String cacheName)
@Nonnull public Promise<java.lang.Boolean> has(@Nonnull java.lang.String cacheName)
@Nonnull public Promise<JsArray<java.lang.String>> keys()
@Nonnull public Promise<ResponseOrUndefinedUnion> match(@Nonnull RequestInfo request, @Nonnull MultiCacheQueryOptions options)
@Nonnull public Promise<ResponseOrUndefinedUnion> match(@Nonnull Request request, @Nonnull MultiCacheQueryOptions options)
@Nonnull public Promise<ResponseOrUndefinedUnion> match(@Nonnull java.lang.String request, @Nonnull MultiCacheQueryOptions 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)