To use persistent storage, you need to pass the flag. The location
for persistent storage is listed in deno info
, and additionally passing the
will give you the path for the specified origin.
The following snippet accesses the local storage bucket for the current origin
and adds a data item to it using setItem()
.
The syntax for removing the localStorage item is as follows: