mirror of
https://github.com/denoland/deno.git
synced 2024-12-26 09:10:40 -05:00
10 lines
453 B
Markdown
10 lines
453 B
Markdown
|
## Web Storage API
|
||
|
|
||
|
As of Deno 1.10, the Web Storage API (`localStorage` & `sessionStorage`) was
|
||
|
introduced, which through `localStorage` allows persistent storage, whereas
|
||
|
`sessionStorage` is a non-persistent memory-based storage.
|
||
|
|
||
|
To use persistent storage, you need to pass the `--location` flag. The location
|
||
|
for persistent storage is listed in `deno info`, and additionally passing the
|
||
|
`--location` will give you the path for the specified origin.
|