@ocap/indexdb-memory
Version:
OCAP indexdb adapter that uses memory as backend, just for test purpose
22 lines (14 loc) • 472 B
Markdown
# [**@ocap/indexdb-memory**](https://github.com/arcblock/blockchain)
[](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();
```