bromba

0.1.1 • Public • Published

NPM version Build Status Dependency Status

bromba

Fast wasteful short buffer disk storage.

Install

$ npm install --save bromba

Usage

const bromba = require('bromba');

// all values will have to be 10 bytes Buffers
let db = bromba('/path/to/my/db.dat', { vlen: 10 });

// keys and values have to be Arrays of Buffer's
let keys = [2, 3, 4].map(x => Buffer.from([x]));

// for each key in an keys set corresponding value from values
await db.putMany(keys, values)


// values for each key from keys
const values = await db.getMany(keys);

License

MIT © Damian Krzeminski

Readme

Keywords

Package Sidebar

Install

npm i bromba

Weekly Downloads

3

Version

0.1.1

License

MIT

Unpacked Size

5.52 kB

Total Files

5

Last publish

Collaborators

  • pirxpilot