files/en-us/web/api/sharedstorage/index.md
{{APIRef("Shared Storage API")}}{{deprecated_header}}
The SharedStorage interface of the {{domxref("Shared Storage API", "Shared Storage API", "", "nocode")}} represents the shared storage for a particular origin, defining methods to write data to the shared storage.
SharedStorage is the base class for:
{{InheritanceDiagram}}
window.sharedStorage
.set("ab-testing-group", "0")
.then(() => console.log("Value saved to shared storage"));
{{Specifications}}
{{Compat}}