@session.js/file-keyval-storage
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@session.js/file-keyval-storage

Simple persistant storage that stores everything in memory and periodically syncs it with locally stored file in key=value format. filePath is optional and defaults to ./storage.db

import { Session } from '@session.js/client'
import { FileKeyvalStorage } from '@session.js/file-keyval-storage'

new Session({ 
  storage: new FileKeyvalStorage({ 
    filePath: 'some-file-path.db' 
  })
})

Made for session.js

Use Session messenger programmatically with Session.js: Session bots, custom Session clients, and more.

Donate

hloth.dev/donate

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @session.js/file-keyval-storage

    Weekly Downloads

    1

    Version

    1.0.2

    License

    none

    Unpacked Size

    3.55 kB

    Total Files

    4

    Last publish

    Collaborators

    • vityaschel