8000 Added JS storage too · danyeaw/pyscript-docs@fc1efb6 · GitHub
[go: up one dir, main page]

Skip to content

Commit fc1efb6

Browse files
committed
Added JS storage too
1 parent 7f57512 commit fc1efb6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/api.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,12 @@ store = await storage("my-data-store", storage_class=MyStorage)
409409
# The store object is now an instance of MyStorage.
410410
```
411411

412+
### `@pyscript/core/dist/storage.js`
413+
414+
The equivalent functionality based on the *JS* module can be found through our module.
415+
416+
The goal is to be able to share the same database across different worlds (interpreters) and the functionality is nearly identical except there is no *class* to provide because the storage in *JS* is just a dictionary proxy that synchronizes behind the scene all read, write or delete operations.
417+
412418
### `pyscript.web`
413419

414420
The classes and references in this namespace provide a Pythonic way to interact

0 commit comments

Comments
 (0)
0