Skip to content

Latest commit

 

History

History

storage-memory

styled with prettier

Introduction

DID Connect session storage engine that uses memory to store data, implements interfaces defined in @did-connect/storage.

Install

npm install @did-connect/storage-memory
// or
yarn add @did-connect/storage-memory

Usage

const { MemoryStorage } = require('@did-connect/storage-memory');

const storage = new MemoryStorage();

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