Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

@arcblock/did-agent-storage-memory

1.0.13 • 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

Install

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

DownloadsWeekly Downloads

8

Version

1.0.13

License

Apache-2.0

Unpacked Size

5.95 kB

Total Files

5

Last publish

Collaborators

  • avatar
  • avatar