ente/web/docs/storage.md
Manav Rathi f10f751a2f
Inline local storage calls
The methods are trivial, and we cannot centralize the keys since they will be
different for different apps. So an abstraction for this is not beneficial.

Also move the next specific dev build check to @/next
2024-04-03 14:21:11 +05:30

491 B

Storage

Local Storage

Data in the local storage is persisted even after the user closes the tab (or the browser itself). This is in contrast with session storage, where the data is cleared when the browser tab is closed.

The data in local storage is tied to the Document's origin (scheme + host).

Session Storage

Indexed DB

We use the LocalForage library for storing things in Indexed DB. This library falls back to localStorage in case Indexed DB storage is not available.