@arcblock/did-agent-storage-memory

1.7.1 • Public • Published

@arcblock/did-agent-storage-memory

styled with prettier

Storage engine that uses mongo to store data, implements interfaces defined in @arcblock/did-auth-storage.

Table of Contents

Install

npm install @arcblock/did-agent-storage-memory
// or
yarn add @arcblock/did-agent-storage-memory

Usage

const MemoryStorage = require('@arcblock/did-agent-storage-memory');

const storage = new MemoryStorage();

(async () => {
  const token = '123456';
  const item = await storage.create(token);
})();

Contributors

Name Website
wangshijun https://ocap.arcblock.io

/@arcblock/did-agent-storage-memory/

    Package Sidebar

    Install

    npm i @arcblock/did-agent-storage-memory

    Weekly Downloads

    34

    Version

    1.7.1

    License

    Apache-2.0

    Unpacked Size

    5.94 kB

    Total Files

    5

    Last publish

    Collaborators

    • wangshijun
    • polunzh
    • mave99a
    • gxw