@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="CacheStorage")
public class CacheStorage
extends JsObject
| Modifier | Constructor and Description |
|---|---|
protected |
CacheStorage() |
| Modifier and Type | Method and Description |
|---|---|
@JsNonNull 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.
|
@JsNonNull 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.
|
@JsNonNull 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.
|
@JsNonNull 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.
|
@JsNonNull 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.
|
@JsNonNull 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.
|
@JsNonNull 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.
|
@JsNonNull 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.
|
@JsNonNull 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.
|
@JsNonNull 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.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, valuespublic @JsNonNull Promise<java.lang.Boolean> delete(@Nonnull java.lang.String cacheName)
public @JsNonNull Promise<java.lang.Boolean> has(@Nonnull java.lang.String cacheName)
public @JsNonNull Promise<JsArray<java.lang.String>> keys()
public @JsNonNull Promise<ResponseOrUndefinedUnion> match(@Nonnull RequestInfo request, @Nonnull MultiCacheQueryOptions options)
public @JsNonNull Promise<ResponseOrUndefinedUnion> match(@Nonnull Request request, @Nonnull MultiCacheQueryOptions options)
public @JsNonNull Promise<ResponseOrUndefinedUnion> match(@Nonnull java.lang.String request, @Nonnull MultiCacheQueryOptions options)
public @JsNonNull Promise<ResponseOrUndefinedUnion> match(@Nonnull RequestInfo request)
public @JsNonNull Promise<ResponseOrUndefinedUnion> match(@Nonnull Request request)
public @JsNonNull Promise<ResponseOrUndefinedUnion> match(@Nonnull java.lang.String request)