@arcblock/app-agent-storage-memory
v0.40.9
Published
Storage engine that uses memory for did-auth
Downloads
3
Readme
@arcblock/app-agent-storage-memory
Storage engine that uses mongo to store data, implements interfaces defined in
@arcblock/did-auth-storage
.
Table of Contents
Install
npm install @arcblock/app-agent-storage-memory
// or
yarn add @arcblock/app-agent-storage-memory
Usage
const MemoryStorage = require('@arcblock/app-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 |