@ocap/statedb-memory
Version:
OCAP statedb adapter that uses memory as backend statedb, just for test purpose
22 lines (14 loc) • 498 B
Markdown
# [**@ocap/statedb-memory**](https://github.com/arcblock/blockchain)
[](https://github.com/prettier/prettier)
> OCAP Adapter that stores data to the disk through [nedb](https://npmjs.org/package/nedb)
## Install
```sh
npm install @ocap/statedb-memory
// or
pnpm install @ocap/statedb-memory
```
## Usage
```js
const MemoryStateDB = require('@ocap/statedb-memory');
const statedb = new MemoryStateDB();
```