Skip to content

Commit

Permalink
doc: add more details for localStorage and sessionStorage
Browse files Browse the repository at this point in the history
PR-URL: #53881
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
Rekl0w authored Sep 20, 2024
1 parent 2a1607c commit 99433a2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions doc/api/globals.md
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,11 @@ added: v22.4.0
A browser-compatible implementation of [`localStorage`][]. Data is stored
unencrypted in the file specified by the [`--localstorage-file`][] CLI flag.
The maximum amount of data that can be stored is 10 MB.
Any modification of this data outside of the Web Storage API is not supported.
Enable this API with the [`--experimental-webstorage`][] CLI flag.
`localStorage` data is not stored per user or per request when used in the context
of a server, it is shared across all users and requests.

## `MessageChannel`

Expand Down Expand Up @@ -972,9 +975,8 @@ added: v22.4.0
> Stability: 1.0 - Early development.
A browser-compatible implementation of [`sessionStorage`][]. Data is stored in
memory, with a storage quota of 10 MB. Any modification of this data outside of
the Web Storage API is not supported. Enable this API with the
[`--experimental-webstorage`][] CLI flag.
memory, with a storage quota of 10 MB. `sessionStorage` data persists only within
the currently running process, and is not shared between workers.

## `setImmediate(callback[, ...args])`

Expand Down

0 comments on commit 99433a2

Please sign in to comment.