Skip to content

In-Memory

This package contains the Flystorage adapter that uses only memory.

Installation

Install all the required packages

Terminal window
npm install --save @flystorage/file-storage @flystorage/in-memory

Setup

import {FileStorage} from '@flystorage/file-storage';
import {InMemoryStorageAdapter} from '@flystorage/in-memory';
const adapter = new InMemoryStorageAdapter();
const storage = new FileStorage(adapter);