@accumulators/rocksdb
TypeScript icon, indicating that this package has built-in type declarations

4.2.3 • Public • Published

rocksdb

Implementation of Store interface that uses a rocksdb database to store data.

After creating an instance of RocksDBStore remember to call init method to initialize the store.

Example

import RocksDBStore from "@accumulators/rocksdb";

const store = new RocksDBStore();
await store.init(); // remember to initialize the store

const valuesToSet = new Map<string, string>();
valuesToSet.set("key1", "value1");
valuesToSet.set("key2", "value2");

await store.setMany(valuesToSet);

await store.set("key3", "value3");

const values = await store.getMany(["key2", "key3"]);

console.log(values.get("key2")); // "value2"

Readme

Keywords

none

Package Sidebar

Install

npm i @accumulators/rocksdb

Weekly Downloads

1

Version

4.2.3

License

GPL-3.0-or-later

Unpacked Size

8 kB

Total Files

8

Last publish

Collaborators

  • 0xmarcello
  • beeinger