@memsdb/storage-sessionstorage
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

A storage engine for MemsDB. This engine will store the data for a document in the browsers sessionStorage. Each document will be a seperate entry in sessionStorage where the ID of the document is the key.

The data can be retrieved via doc.data

import { DB } from '@memsdb/core'
import { SessionStorage } from '@memsdb/storage-session'

const db = new DB('test', {
  backupProvider: new SessionStorage(),
})

Package Sidebar

Install

npm i @memsdb/storage-sessionstorage

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

4.29 kB

Total Files

12

Last publish

Collaborators

  • brocococonut