UNPKG

@ocap/statedb-memory

Version:

OCAP statedb adapter that uses memory as backend statedb, just for test purpose

22 lines (14 loc) 498 B
# [**@ocap/statedb-memory**](https://github.com/arcblock/blockchain) [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](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(); ```