- From: Joshua Bell <notifications@github.com>
- Date: Wed, 19 Mar 2025 12:34:37 -0700
- To: whatwg/storage <storage@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 19 March 2025 19:34:42 UTC
inexorabletash left a comment (whatwg/storage#179) See also #153 A slight tangent, but if there's a general rethink on what should be exported: both [Indexed DB](https://w3c.github.io/IndexedDB/#database-construct) and [Web Locks](https://w3c.github.io/web-locks/#lock-managers) use (or should use) storage keys and bottles in ways beyond the original idea. In both of those cases, it's because the bottle map idea is a great fit for the local storage API (it's a simple key/value store) but for more complex cases there are [some contortion required](https://github.com/w3c/IndexedDB/pull/334) to make it fit; there's more logic required to managing IndexedDB's set of databases and the set of requested/held Web Locks than just entries in a map. One approach is to say that a site's entire "indexeddb manager" or "lock manager" resides in a single value within the local session storage bottle map for "indexeddb" or "lock", but that also feels kinda weird. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/storage/pull/179#issuecomment-2737854028 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/storage/pull/179/c2737854028@github.com>
Received on Wednesday, 19 March 2025 19:34:42 UTC