UNPKG

@ocap/indexdb-memory

Version:

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

22 lines (14 loc) 472 B
# [**@ocap/indexdb-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 indexdb adapter that stores data in memory through lokijs ## Install ```sh npm install @ocap/indexdb-memory // or pnpm install @ocap/indexdb-memory ``` ## Usage ```js const MemoryIndexDB = require('@ocap/indexdb-memory'); const indexdb = new MemoryIndexDB(); ```