Definition
Shared Storage API defines SharedStorage
[Exposed=(Window,SharedStorageWorklet)]
interface SharedStorage {
Promise<any> set(DOMString key,
DOMString value,
optional SharedStorageSetMethodOptions options = {});
Promise<any> append(DOMString key,
DOMString value,
optional SharedStorageModifierMethodOptions options = {});
Promise<any> delete(DOMString key, optional SharedStorageModifierMethodOptions options = {});
Promise<any> clear(optional SharedStorageModifierMethodOptions options = {});
Promise<any> batchUpdate(sequence<SharedStorageModifierMethod> methods,
optional SharedStorageModifierMethodOptions options = {});
[Exposed=Window]
Promise<SharedStorageResponse> selectURL(DOMString name,
sequence<SharedStorageUrlWithMetadata> urls,
optional SharedStorageRunOperationMethodOptions options = {});
[Exposed=Window]
Promise<any> run(DOMString name,
optional SharedStorageRunOperationMethodOptions options = {});
[Exposed=Window]
Promise<SharedStorageWorklet> createWorklet(USVString moduleURL, optional SharedStorageWorkletOptions options = {});
[Exposed=Window]
readonly attribute SharedStorageWorklet worklet;
[Exposed=SharedStorageWorklet]
Promise<DOMString> get(DOMString key);
[Exposed=SharedStorageWorklet]
Promise<unsigned long> length();
[Exposed=SharedStorageWorklet]
Promise<double> remainingBudget();
[Exposed=SharedStorageWorklet]
async iterable<DOMString, DOMString>;
};