Feature: KV storage
(No longer pursuing)
KV storage provides a simple, asynchronous key/value store with a modern API. Additionally, it allows easy creation of isolated storage areas beyond the default one. KV storage is layered on top of IndexedDB, storing its data in a specific database, so the developer can fall back to using IndexedDB directly when necessary.
As explained in Mozilla's 2012 article, "There is no simple solution for local storage", the web today has no good key/value store. Local storage itself is synchronous, leading to performance issues and cross-window synchronization problems. Developers often use it anyway, leading to subpar web experiences. Other developers use libraries like localForage or idb-keyval to get around this problem. We've taken inspiration from their work to build KV storage.
Status in Chromium
No longer pursuing (tracking bug)
Consensus & Standardization
Intent to Prototype urlIntent to Prototype thread
Search tagslocal storage, async local storage, kv storage, lapi, lapis, layered api, layered apis, indexeddb,
Last updated on 2020-11-14