Skip to Content

memoryStorage Function

Creates a singleton instance of MemoryStorage, ensuring that only one instance of the in-memory key-value storage exists

@template T = any
The type of data stored in the memory storage. Defaults to any

@returns MemoryStorage<T>

API

function memoryStorage<T = any>(): MemoryStorage<T>;

Example

import {memoryStorage} from '@bitfiber/rx'; const ms = memoryStorage();
Last updated on